[Solved] Question about convert and comments

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
tomdkat
Posts: 5
Joined: 2013-11-26T01:11:15-07:00
Authentication code: 6789

[Solved] Question about convert and comments

Post 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...
Last edited by tomdkat on 2014-02-10T23:15:38-07:00, edited 1 time in total.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Question about convert and comments

Post 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
tomdkat
Posts: 5
Joined: 2013-11-26T01:11:15-07:00
Authentication code: 6789

Re: Question about convert and comments

Post 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...
Post Reply