Page 1 of 1

[Solved] Question about convert and comments

Posted: 2014-02-08T14:09:09-07:00
by tomdkat
I've noticed when I issue this convert command:

Code: Select all

convert photo.jpg -strip -quality 90 -comment "This is a comment" newphoto.jpg
The "This is a comment" comment doesn't get set in the new JPEG image file. If I use mogrify to set the comment, the comment is set in the JPEG image file.

Is this normal behavior for convert? I'm using ImageMagick 6.7.7-10 on Ubuntu 13.10 Linux (64-bit).

Thanks!

Peace...

Re: Question about convert and comments

Posted: 2014-02-08T14:22:17-07:00
by fmw42
try

convert photo.jpg -strip -quality 90 -set comment "This is a comment" newphoto.jpg

I think the use -comment needs to come before the input, so try also

convert -comment "This is a comment" photo.jpg -strip -quality 90 newphoto.jpg

Re: Question about convert and comments

Posted: 2014-02-10T23:09:31-07:00
by tomdkat
Thanks! I'll try both of those and will report back my results!

EDIT: Ok, your suggestions worked like a charm! Thanks!

Peace...