Page 1 of 1

-Background transparent doesnt work :(

Posted: 2009-07-08T01:16:36-07:00
by ragged
Hi folks,

have a little problem.

i tried the following

convert -thumbnail 135x108 -extent 135x108 -background transparent 01.jpg 01.png

the problem now is, that the 01.png picture didnt get the transparent information, so the background is black.
IM is used on a SLES 10 sp 2 in Version 6.2.5-16.26

Is there still a workaround? Or do you know how it works?

thanks to all

Re: -Background transparent doesnt work :(

Posted: 2009-07-08T05:47:58-07:00
by magick
We tried your command with the latest ImageMagick release, 6.5.4-2, and it worked as expected. Its a possible there is a bug in your release of ImageMagick.

Re: -Background transparent doesnt work :(

Posted: 2009-07-08T06:50:02-07:00
by ragged
yes, i updated to 6.4.3 and now it works.

thanks so far

Re: -Background transparent doesnt work :(

Posted: 2009-07-12T20:56:27-07:00
by anthony
Also you are better of doing the image processing in the right order, or their is no gurantee you will get the operation order expected,

EG:

Code: Select all

convert 01.jpg   -background transparent   -thumbnail 135x108   -extent 135x108  01.png
You may also want a -gravity center before the -extent 8)