ImageMagic | JMagick | Transparent Image

121 Views Asked by At

Is there a way in Jmagick to make a png image transparent?

Input: A PNG image
Output: A transparent PNG image

I want the background of an image to be transparent.

1

There are 1 best solutions below

1
On

Your question is quite unclear, but if you mean you want to ensure that a PNG image is saved with an alpha/transparency layer, then all you need to do is prefix the output filename with PNG32:. In the Terminal, that looks like this:

magick input.png PNG32:output.png

If you mean something else, please click edit under your question and clarify.