Sasuun Posted October 4, 2006 Share Posted October 4, 2006 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? Link to comment https://forums.phpfreaks.com/topic/22937-create-a-psd-preview/ Share on other sites More sharing options...
Hi I Am Timbo Posted October 4, 2006 Share Posted October 4, 2006 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. Link to comment https://forums.phpfreaks.com/topic/22937-create-a-psd-preview/#findComment-103565 Share on other sites More sharing options...
zq29 Posted October 4, 2006 Share Posted October 4, 2006 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.gifIf the psd has a transparent background, it is converted to white - any ideas on preserving the transparency? Link to comment https://forums.phpfreaks.com/topic/22937-create-a-psd-preview/#findComment-103662 Share on other sites More sharing options...
Sasuun Posted October 4, 2006 Author Share Posted October 4, 2006 maybe using something like imagecolortransparent() would help preserve it Link to comment https://forums.phpfreaks.com/topic/22937-create-a-psd-preview/#findComment-103741 Share on other sites More sharing options...
Ninjakreborn Posted October 4, 2006 Share Posted October 4, 2006 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. Link to comment https://forums.phpfreaks.com/topic/22937-create-a-psd-preview/#findComment-103744 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.