[magick-users] alpha channel ImageMagick and FPDF... Ghostscript maybe?

Pierre-Yves Landuré py.landure at dorigo.fr
Fri Dec 12 04:39:54 PST 2008


Hi,

This is not related to imagemagick, but take a look at TCPDF :

http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf

It is a successor to FPDF, and it just recently began to support PNG 
alpha channel.

As for the solution with FPDF, i don't really know, but TCPDF can help 
you , may be.

Pierre-Yves Landuré

pere roca a écrit :
> dear all,
> I have just moved from GD to imagemagick. i was using FPDF to incrustate
> images generated from GD  in PDFs  but now it doesn't work with imagemagick
> ; it complains about alpha channel.
>
> FPDF doesn't support alpha channel. The strange thing is that it worked for
> GD, so I suppose that by default ImageMagick creates PNGs with alpha
> channel. I have tried to remove it using  "convert 'file.png' -depth 0
> 'no_alpha.png'" without success ("FPDF error: 16-bit depth not supported:
> download/new2.png").
>
> So I'm wondering if I have to move to Ghostscript; someone knows if alpha
> channel is supported there? is Ghostscript easy to work with?
>
> thanks!
>
> Pere
>   



More information about the Magick-users mailing list