Jump to content

Archived

This topic is now archived and is closed to further replies.

Sasuun

Create a PSD preview

Recommended Posts

Does anyone know of a way to display a preview for a psd using PHP, maybe the GD library. photoshop generates previews as part of the file, so does anyone have an idea of how to retrieve it?

Share this post


Link to post
Share on other sites
I would start by looking at the file and seeing if there is an obvious preview portion in it.  If you can find that, you can likely extract it manually.

Share this post


Link to post
Share on other sites
I'm actually trying to do the same thing for a project, so far, I have somewhat got it working. I'm passing it through ImageMagick with a command like:

convert old.psd -flatten new.gif

If the psd has a transparent background, it is converted to white - any ideas on preserving the transparency?

Share this post


Link to post
Share on other sites
You can set up a cgi to transform the image to jpg, and pass it back to your php page, and work with it that way.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.