Page 1 of 1

-strip erroneously overrides -comment

Posted: 2007-06-19T03:58:02-07:00
by ramalama
if i do

convert -strip -comment "hello" a.jpg b.jpg

then the "hello" comment is not included in b.jpg.

-strip thus seems to override my -comment option.

this seems wrong.

-strip should remove all OLD meta data included in a.jpg
-comment should add my comments to b.jpg

can this please be fixed for the next release?

any workarounds for the current version would be appreciated.

Re: -strip erroneously overrides -comment

Posted: 2007-06-19T06:25:26-07:00
by magick
Try this command to retain the image comment:
  • convert a.jpg -strip -set comment "hello" b.jpg

Re: -strip erroneously overrides -comment

Posted: 2007-06-19T20:07:26-07:00
by anthony
Simpley put, read in the image first, and do things in the order wanted.

This could be called the motto of IM version 6

Re: -strip erroneously overrides -comment

Posted: 2007-06-20T01:17:59-07:00
by ramalama
brilliant. i was not aware of the "-set" option, as it was not listed in my outdated manual file. thanks!