Agamnentzar
Agamnentzar
It works correctly for me in Photoshop, it seems Photopea doesn't have the same handling for missing text layer canvas, so in order for the file to work in there...
Because `photos` on your device is using composite image (`psd.canvas`) to show you the preview, it doesn't actually render the whole document. If you want to see the correct preview...
This library only handles reading and writing PSD files, it doesn't handle rendering, so you can't use it to update the file and get final image. You'd have to render...
Just published version `26.0.0` with support for these masks in `layer.realMask` field
Can you show me the code? I don't know if you're reading or writing the file, what are you using to view the result?
There's nothing in the writing that does any rescaling of your canvases so it has to do something with the way you set the canvases
The library is not updating composite image by itself, you have to update is yourself. So no, if you make any changes to the document the will not be reflected...
Published version `28.1.0` with a fix
This library is intended for reading and writing PSD file contents, it's not intended to be fully featured rendering engine of Photoshop.
The red color is in `layer.layerColor` it's just so you can mark layer in different colors to easily find them. Are you able to share the PSD file?