Agamnentzar / ag-psd

Javascript library for reading and writing PSD files
Other
496 stars 66 forks source link

Text layer aligned to the left parsed as justify-center. #184

Open eiLLFire opened 3 months ago

eiLLFire commented 3 months ago

In the latest version, the justification of text layers aligned to the left is set to justify-center. image

image

Agamnentzar commented 3 months ago

@eiLLFire can you share your PSD file, I can't reproduce the issue.

xmejsieoke commented 3 months ago

@Agamnentzar jsc.zip

xmejsieoke commented 3 months ago

When you first select an area and then enter text, the parsing is correct. However, when you click and enter text directly, there is an issue.

Agamnentzar commented 3 months ago

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 can actually see that Photoshop highlights justify-center option for a split second before the buttons get disabled.

https://github.com/Agamnentzar/ag-psd/assets/572298/43421b10-e14a-4731-85c2-b6a84a6272b6

xmejsieoke commented 3 months ago

Can you tell your Photoshop version?

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 can actually see that Photoshop highlights justify-center option for a split second before the buttons get disabled.

2024-07-09.21-23-20.mp4

Agamnentzar commented 3 months ago

I tested it on Photoshop 2024