Fred, Thanks for your reply. The command i am using is:
> convert -resize 64x64 wbtest.png out.png # Get metadata for original image: > identify -verbose wbtest.png > /tmp/wb # Get metadata for transformed image > identify -verbose out.png > /tmp/wb # Do a diff: > diff wb wbt 1c1 < Image: wbtest.png --- > Image: out.png 113c113 < Background color: white --- > Background color: rgba(1,1,1,1) ... Now, i tried with your suggestion but the background shows up as black (altough Background color says white) > convert -resize 64x64 wbtest.png -alpha off out.png; identify - verbose out.png | grep Background Background color: white All i want is keep the image as it was before the resizing. Any ideas? S. On Sep 22, 2009, at 3:10 PM, Fred Weinhaus wrote: > > What is your exact command? You have probably done something to > either add transparent colors or turn on the alpha channel > everywhere. If you want to turn it off everywhere, then at the end of > your command line just before the output image add -alpha off (or > +matte). > > > > I am doing a simple resize operation on an image with a white >> backgound, and when i look at the result, i see that the background >> has changed: >> < Background color: white >> --- >>> Background color: rgba(1,1,1,1) >> >> >> Is that intended? Is there any option i could turn on to prevent >> that. >> That seems to not give the expected result on IE6? >> >> Thanks, >> >> S. > _______________________________________________ > Magick-users mailing list > [email protected] > http://studio.imagemagick.org/mailman/listinfo/magick-users _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
