Page 1 of 1

RESOLVED: Editing text layers of a Photoshop PSD?

Posted: 2009-05-11T13:18:58-07:00
by evank
I have a multi-layered PSD, and one specific layer is a text layer. What I'm wanting to do is edit the text of the aforementioned layer, and then save a flattened PNG or JPG image -- with many variations, so ideally from a script of some kind.

From searching through the forums, I've gathered that its rather easy to flatten the PSD and save to a different format like so:

Code: Select all

convert text.psd[0] text.jpg
So then, all that's left is to edit the text layer (through command-line or one of the IM language APIs). Is it possible to do this via ImageMagick?

Re: Editing text layers of a Photoshop PSD?

Posted: 2009-05-11T18:49:54-07:00
by anthony
IM does read in all the layers of Photoshop, only the first is the flattened result.
It may not however 'flatten' the layers in the same way if you do 'unusual things' with the layers.
Also all layers would be treated as images. I have no idea on how photoshop stores a 'text layer'. IM may not even understand it.

Re: Editing text layers of a Photoshop PSD?

Posted: 2009-05-11T19:04:26-07:00
by evank
Hmm, that's what I was afraid of. If I understand the PSD format correctly (which I probably don't), I think text layers are stored as vectors, as opposed to rasterized graphics.

Oh well, I'm sure there's some other way to accomplish what I was trying to do. Thanks for the prompt reply!