ag-psd icon indicating copy to clipboard operation
ag-psd copied to clipboard

Rerendering the text layer “My Test Text” will cause its layout to change. The existing pixel data is used instead.

Open aamirsdev opened this issue 1 month ago • 1 comments

I am creating a PSD file programmatically using JSON data. The issue I’m facing is related to Text Layer creation.

When I generate the text layer through my code, the layer appears correctly inside the PSD. However, when I open the PSD in Photoshop and try to edit or transform the text layer, Photoshop shows a popup warning/error message for every text layer.

I am not sure what is causing this issue. Below is the code I am using to create the text layer and set its properties.

Can you please help me understand why this warning is appearing and what I should change to fix it?

I am attaching a sample script and PSD file generated through the same code. I have set all those attributes which I am using in my actual functionality.

Thanks again. Much appreciate your efforts

sample.js

PSD file.zip

Error Screenshot :

Image

aamirsdev avatar Nov 28 '25 12:11 aamirsdev

When I open it in older version of Photoshop it shows correct alert box

Image

I'm not sure why new version doesn't work correctly with it. There are still some parts of saving text layers that are not implemented in this library, there's no documentation or clear path to implementing those so I'm not sure if this is a solvable issue.

Agamnentzar avatar Nov 28 '25 16:11 Agamnentzar