2

如何使用 PHP将32 位 PNG文件转换为24 位 PNG文件。

顺便说一句,我正在使用 Codeigniter,并计划在 Dreamhost 托管文件。

谢谢!

4

1 回答 1

-1

Give this a try:

exec('convert -depth 24 /path/to/old/image.png /path/to/new/image.png');

There is a PEAR package for ImageMagick, although making a system call also works if your hosting provider hasn't installed the PEAR package.

于 2011-10-05T13:13:26.277 回答