exif comment after a convert -resize

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
calmar

exif comment after a convert -resize

Post by calmar »

Hi all, is it possible to keep the exif 'Comment' on the target file of a convert statement?

(If not, I will have to manually readd it to the newly created file, but when it would be possible in one go, it would be nice).

thanks a lot
calmar

( http://www.calmar.ws/resize/ )
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: exif comment after a convert -resize

Post by anthony »

It is kept by default unless you use -strip or -thumbnail (resize with strip)
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
calmar

Re: exif comment after a convert -resize

Post by calmar »

Hi,

then something is wrong with jhead, or anyway convert on those particular pics:

http://www.calmar.ws/tmp/123-Sat-screen.png

that's the pic I tried it ( http://www.calmar.ws/tmp/Wallis_2008_227.jpg )

In fact, with my cam, it about always worked - not with the pics of my friends one.

When I find 'where' and nothing else it told here, I guess I will open a bug report - may won't hurt.

cheers
marco
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: exif comment after a convert -resize

Post by anthony »

From what I can see all the EXIF information abotu the image is still present after being resized. The only information that has been modified was the resolution, and for some reason the comment, which is NOT part of the EXIF data.

I have no idea why the comment is missing, it should be present from what I can see from your screen shot. I would consider this a bug, which should be reported in the bugs forum.

Hmmm...

Code: Select all

convert http://www.imagemagick.org/Usage/photo_store/hatching_orig.jpg -format %c info:
returned
Hatching of Linux
Now resize...

Code: Select all

convert http://www.imagemagick.org/Usage/photo_store/hatching_orig.jpg -resize 50% -format %c info:
also returned the same comment. So far so good, lets try a save to jpg (in a pipeline)

Code: Select all

convert http://www.imagemagick.org/Usage/photo_store/hatching_orig.jpg -resize 50% jpg:- | identify -format %c
NO COMMENT!!!!!

Removing the resize...

Code: Select all

convert http://www.imagemagick.org/Usage/photo_store/hatching_orig.jpg jpg:- | identify -format %c
Same result!!! It is NOT resize, but the save to jpeg that is failing to save the comment!!! Definate bug
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
calmar

Re: exif comment after a convert -resize

Post by calmar »

Hi Anthony,

I just posted a link to this thread here to the 'bug-mailing-list'.

Thanks again for helping and pointing out!

cheers
marco
Post Reply