image
image copied to clipboard
Read text from PsdLayer
I've a layer that contains just text. Is there a way to read the text layer?
You might be able to by getting the PsdImage and looking at its PsdLayers.
var psd = PsdImage(bytes);
psd.decode();
psd.layers has the layers, and you can check if there's any useful data in there
@brendan-duncan All the text layers are converted into image I guess. Raw text could not be extracted. Also, Font used and other such details.
If you send me the psd and what info you're looking for, I can take a look. There's no text to image conversions happening. PSD is a particular format, not really designed for anything but use with Photoshop. The decoder in this library doesn't render the PSD, but PSD files include a pre-rendered image within them that the decoder is extracting. The other information could possibly be in the PsdImage class somewhere, though, having been extracted in the process.