Page 1 of 1

Status of the update process of EXIF thumbnail

Posted: 2008-10-28T07:45:11-07:00
by naoliv
Hi!

Trying to clean the reported bugs on Debian now (in special this bug), I would like to know if ImageMagick is still affected by CAN-2005-0406 (if convert and mogrify, for example, are now updating the EXIF thumbnail when changing an image; and if possible, since when it has been fixed)

Thank you very much!

Re: Status of the update process of EXIF thumbnail

Posted: 2008-10-28T07:51:55-07:00
by magick
ImageMagick does not automatically remove the thumbnail from the EXIF profile. Instead the user has the option of removing the EXIF profile with -strip option for example. Or they can extract the EXIF profile, modify it with an external program, and re-inject it into the image.

Re: Status of the update process of EXIF thumbnail

Posted: 2008-11-11T07:00:37-07:00
by naoliv
Hi!

Still about EXIF, and from this bug report, can't ImageMagick work losslessly when just striping the EXIF of a JPEG file? (for example, a simple "convert -strip input.jpg output.jpg")

Thank you!

Re: Status of the update process of EXIF thumbnail

Posted: 2008-11-11T18:14:21-07:00
by anthony
IM is not designed to do this. It is a image processor, and nor a specific image format handler. Lossless requires it to NOT process the image in a very format specific way.

It is however posible to create a JPEG->JPEG delegate that will strip the jpeg image losslessly and as long as IM does not have any other processing options (like -strip -taint -resize etc) it will just do file transfers.

It will still decode the image, but if the final result was not marked as 'tainted' it junks that and simply file transfers the original.

See IM Examples, Delegate Handling
http://www.imagemagick.org/Usage/files/#delegates

Re: Status of the update process of EXIF thumbnail

Posted: 2009-01-14T07:22:39-07:00
by adambuchbinder
anthony wrote:IM is not designed to do this. It is a image processor, and nor a specific image format handler. Lossless requires it to NOT process the image in a very format specific way.

It is however posible to create a JPEG->JPEG delegate that will strip the jpeg image losslessly and as long as IM does not have any other processing options (like -strip -taint -resize etc) it will just do file transfers.

It will still decode the image, but if the final result was not marked as 'tainted' it junks that and simply file transfers the original.
There are also tools specifically designed for EXIF processing, like jhead. Running jhead -purejpg will strip everything other than the image data (i.e., thumbnail, comment and EXIF data) from the file. If you want to simply delete the thumbnail while leaving everything else intact, use jhead -dt. (There are also options to regenerate the thumbnail, set rotation on the image, and plenty of other things.)

Just a suggestion--it might be easier to use a specific tool than to adapt a generic one for this particular purpose.

Re: Status of the update process of EXIF thumbnail

Posted: 2009-01-14T17:39:46-07:00
by anthony
adambuchbinder wrote:
anthony wrote:IM is not designed to do this. It is a image processor, and nor a specific image format handler. Lossless requires it to NOT process the image in a very format specific way.

It is however posible to create a JPEG->JPEG delegate that will strip the jpeg image losslessly and as long as IM does not have any other processing options (like -strip -taint -resize etc) it will just do file transfers.

It will still decode the image, but if the final result was not marked as 'tainted' it junks that and simply file transfers the original.
There are also tools specifically designed for EXIF processing, like jhead. Running jhead -purejpg will strip everything other than the image data (i.e., thumbnail, comment and EXIF data) from the file. If you want to simply delete the thumbnail while leaving everything else intact, use jhead -dt. (There are also options to regenerate the thumbnail, set rotation on the image, and plenty of other things.)

Just a suggestion--it might be easier to use a specific tool than to adapt a generic one for this particular purpose.
As I mentioned. A delegate could be made so as to do the processing only using other external commands. See IM Examples, Delegate Handling
http://www.imagemagick.org/Usage/files/#delegates

This section has only just touched the surface of what IM could do with other programs.