(ASAP) DISAPPEAR GIF 89a PLAINTEXT extension

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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: (ASAP) DISAPPEAR GIF 89a PLAINTEXT extension

Post by anthony »

Yes the GIF file format allows for a "comment" attribute. It does not however allow 'label' meta-data attributes.

This is looked at as part of the "montage" command in IM examples.
http://www.imagemagick.org/Usage/montage/#label

Specifically...

Code: Select all

   convert -comment 'my_comment'   rose:      rose.gif
OR

Code: Select all

  convert rose: -set comment 'my_comment'  rose.gif
You can see these with...

Code: Select all

  identify -format 'file: %f\ncomment: %c'  rose.gif
which returned...
file: rose.gif
comment: my_comment

Now if this is dissappearing it is because you did not try to preserve the meta-data.

For example overlaying a GIF onto another image will use the other images meta-data. The GIF meta-data will not be merged! To preserve the meta-data the 'destination' or 'background' image must be used in alpha composition.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply