I try to make black color transparent within one png format image.
/usr/bin/convert -transparent black input.png output.png
this command can get what I want on windows computer but it can't on my hosting server(Linux).
any one can help me fill out this problem?
thank you very much.
convert -transparent didn't work on my server.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: convert -transparent didn't work on my server.
You need two things to make black transpartent. the operator whcih you have, and the alpha channel in the image, which you presumabky do not.
Try this, which has also been argument order corrected, to read the image BEFORE trying to modify it, (without using the legacy support).
Enjoy.
Try this, which has also been argument order corrected, to read the image BEFORE trying to modify it, (without using the legacy support).
Code: Select all
convert input.png -matte -transparent black output.png
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/