Agamnentzar
Agamnentzar
You can save `psd.canvas`, in browser it's regular HTMLCanvasElement ( https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement ) and in node it's node-canvas canvas object ( https://github.com/Automattic/node-canvas?tab=readme-ov-file#non-standard-apis ) The PSD document is not guaranteed to have...
`skipCompositeImageData: true` option skips reading `psd.canvas` fields, you need to remove it.
You also need to update `psd.canvas` to update the composite image
Yes, you need to do all of this yourself, the library only supports reading and writing the file, it doesn't handle rendering the layers as it would be extremely complicated...
Unfortunately it seems that this information is saved in `psd.engineData` field, there's no documentation of that data and it's structure is very cryptic. If you just need to read that...
Each element in `Editors?` array seem to reference different text layer, but I'm not sure which one matches which layer, I couldn't find layer ID field anywhere in there that...
I think you need to take `text.boundingBox` (or maybe `text.bounds` not sure why there are 2 of these) and transform it using `text.transform`
@eiLLFire can you share your PSD file, I can't reproduce the issue.
When I'm opening the file in Photoshop it doesn't highlight any of the align options, Photopea shows justified-center option, it seems it was just saved with justify options somehow. You...
I tested it on Photoshop 2024