Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 PHP将32 位 PNG文件转换为24 位 PNG文件。
顺便说一句,我正在使用 Codeigniter,并计划在 Dreamhost 托管文件。
谢谢!
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.