1.PSD files for the Photoshop file format, the browser can not directly display, there is a need to generate a PSD file preview, Google for a few days did not find the available code, so that their own research, finally found a solution, the PSD is exported to a JPG file, Then generate thumbnails for them, which makes it much easier.
2. Need to use an open source library to PHP: ImageMagick, installation method: Google search "imagemagick php Windows Installation", of course, if you are Linux, replace Windows with Linux.
3. Installed, the key is how to use, after a few hours of tossing, the final realization of the conversion, very simple:
$MW = Newmagickwand ();
Magickreadimage ($MW, 123.PSD);
Magickresetiterator ($MW);
Magickwriteimage ($MW, "123.jpg");
http://www.bkjia.com/PHPjc/478782.html www.bkjia.com true http://www.bkjia.com/PHPjc/478782.html techarticle 1.psd file for photoshop file format, the browser can not directly display, there is a need to generate a PSD file preview, Google for a few days did not find the code available, so I researched the next ...