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
-Background transparent doesnt work :(
Re: -Background transparent doesnt work :(
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 :(
yes, i updated to 6.4.3 and now it works.
thanks so far
thanks so far
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: -Background transparent doesnt work :(
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:
You may also want a -gravity center before the -extent
EG:
Code: Select all
convert 01.jpg -background transparent -thumbnail 135x108 -extent 135x108 01.png
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/