Converting .Psd File To .Png file with php

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
MIMI
Posts: 2
Joined: 2012-04-20T15:12:11-07:00
Authentication code: 13

Converting .Psd File To .Png file with php

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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
Post Reply