Page 1 of 1

Converting .Psd File To .Png file with php

Posted: 2012-04-20T15:25:47-07:00
by MIMI
Hello i really need to convert a psd file to a ,png file
I want to
Get psd layer by name then change/add the text in it
then save the final psd as a png file please help
I need to do this in php

Re: Converting .Psd File To .Png file with php

Posted: 2012-04-20T15:58:00-07:00
by fmw42
Imagemagick can extract all or some of the layers into separate images. You can use [0] to get the first layer, [1] to get the second or [1-3] to get the second thru fourth layer.

convert image.psd[1-3] image.png

Or get them all as:

convert image.psd image.png

But it cannot use layer names to find/extract the layers

PNG will create all layers as separate images since it does not support multi-layer structure. The images will be named, image-0.png, image-1.png, etc.

see
http://www.imagemagick.org/script/comma ... 32463u4cq0