Creating a non-transparent thumbnail from a transparent GIF

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?".
Locked
User avatar
magick
Site Admin
Posts: 11254
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Use this command to resize your image:
  • convert C:\tiscali.gif +matte -thumbnail 40x40 C:\tiscali_sm.gif

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

Post by anthony »

If you want a specifc color for the background use

Code: Select all

   convert C:\tiscali.gif  -background white -flatten \
              -thumbnail 40x40 C:\tiscali_sm.gif
WARNING: -flatten will not work with GIF animations as is. But then
Neither will +matte
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/

Locked