List Info

Thread: EXIF saving




EXIF saving
country flaguser name
United States
2007-08-22 16:15:12
Should this work?  Bob has told me before that GM prefers to
drop EXIF 
information but I really need it and do not want to link
another 
external library (if I must, I must, though).

	Image img(PATH);
	Blob exif = img.profile("EXIF");
	img.rotate(90);
	img.profile("EXIF", exif);
	img.write(PATH);

The image is being rotated and if I instrument the code to
print the 
Blob returned by img.profile("EXIF"), it is quite
large.  However, 
writing the EXIF info back into the image is not working. 
The docs make 
me suspect that "EXIF" is not technically a
supported key for the 
profile() method.

Richard

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and
a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Graphicsmagick-help mailing list
Graphicsmagick-helplists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gra
phicsmagick-help

Re: EXIF saving
country flaguser name
United States
2007-08-22 16:26:22
On Wed, 22 Aug 2007, Richard Crowley wrote:
>
> The image is being rotated and if I instrument the code
to print the
> Blob returned by img.profile("EXIF"), it is
quite large.  However,
> writing the EXIF info back into the image is not
working.  The docs make
> me suspect that "EXIF" is not technically a
supported key for the
> profile() method.

I expect that the problem is that EXIF is being ignored
(intentionally 
or not) by the JPEG writer.  Since EXIF information was
present 
already, this can be the only correct answer.

Bob
======================================
Bob Friesenhahn
bfriesensimple.dallas.tx.us, http://w
ww.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMag
ick.org/


------------------------------------------------------------
-------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and
a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Graphicsmagick-help mailing list
Graphicsmagick-helplists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gra
phicsmagick-help

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )