-Background transparent doesnt work :(

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
ragged

-Background transparent doesnt work :(

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: -Background transparent doesnt work :(

Post 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.
ragged

Re: -Background transparent doesnt work :(

Post by ragged »

yes, i updated to 6.4.3 and now it works.

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

Re: -Background transparent doesnt work :(

Post 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)
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply