Posted: 2006-10-10T19:13:21-07:00
You are converting a image with transparency (GIF) to an image format that can NOT handle transparency (JPG). the result is transparent areas are now black.
To fix set a backgound color and -flatten the image onto that color.
Or if you likemage.gif the 'transparent color' that GIF uses. Remove the transparency before doing ANY form of image processing.
Finally -geometry as a resize operator is depreciated in favor of -resize, See
http://www.cit.gu.edu.au/~anthony/graph ... ics/#notes
for details, and its backward compatiblity handling.
To fix set a backgound color and -flatten the image onto that color.
Code: Select all
convert image.gif -resize 125x125 -background grey -flatten image.jpg
Code: Select all
convert image.gif +matte -resize 125x125 image.jpg
http://www.cit.gu.edu.au/~anthony/graph ... ics/#notes
for details, and its backward compatiblity handling.