RESOLVED: Editing text layers of a Photoshop PSD?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
evank

RESOLVED: Editing text layers of a Photoshop PSD?

Post 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?
Last edited by evank on 2009-05-11T19:04:39-07:00, edited 1 time in total.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Editing text layers of a Photoshop PSD?

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
evank

Re: Editing text layers of a Photoshop PSD?

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