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.
我最近被要求提供一个脚本,允许最终用户上传 PSD (Photoshop) 文件,然后将其拆分并从每个图层创建图像。
为此,我很想继续使用 PHP,但我也对 Python 或 Perl 持开放态度。
任何想法将不胜感激。
您可以尝试PHP PSD Reader,它至少可以帮助您入门。
将 GraphicsMagick 或 ImageMagick 与 Magick++ 一起使用,您就可以使用 imagick。
imagick 具有从图层转换 PSD 所需的所有调用,包括制作蒙版。