DEV-Devound

Results 26 comments of DEV-Devound

> You have to open the file in actual Photoshop to redraw the text layers, neither `ag-psd`, nor `psd` library does text layer rendering for you. Both libraries are just...

> I don't see how this could have ever worked, unless `psd` library was re-drawing the text layers, but their documentation says that they just use composite image. I dont...

> Do you see this popup when you open the files in Photoshop? ![image](https://private-user-images.githubusercontent.com/572298/325779459-2b477873-048c-453d-ac6f-b6edbf6d4423.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTQwODE4NTMsIm5iZiI6MTcxNDA4MTU1MywicGF0aCI6Ii81NzIyOTgvMzI1Nzc5NDU5LTJiNDc3ODczLTA0OGMtNDUzZC1hYzZmLWI2ZWRiZjZkNDQyMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNDI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDQyNVQyMTQ1NTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hY2Y1MTAzYTM1YjMyZWIzYzIwMTFjOWUxNmMyMDVhNTFjMWI2NjEyOGM5YjY1NTE0ZjQzY2FhZjJhNzE5ODg3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.aKrj9IZg7chWa6j5ZaPsVryJWx1pmMRWXZovawbLOmw) > > You can also check this file that definitely shows the popup for me: [expected.zip](https://github.com/Agamnentzar/ag-psd/files/15122292/expected.zip)...

> I'm using this in tests: > > ```js > const buffer = fs.readFileSync('text-replace2.psd'); > const psd = readPsd(buffer), {}); > psd.children[1].text.text = 'Foo bar'; > const output = writePsdBuffer(psd,...

> Did you see the popup for the file I sent? If not you might have dismissed it permanently or maybe your version of photoshop changed the way it works....

> Yes, that code works for me and the result of that code is still foo bar?

ok, ill try to implement that now with exporting images but im really confused

> ok, ill try to implement that now with exporting images but im really confused, do you know how can this be done? or should i try to do this...

> If you need to update text layer, you need to redraw it yourself, which means you need to re-implement entire text rendering engine of Photoshop, you could just reimplement...

> If you only need to redraw simple text you can probably use canvas api for that, if you need something more complex you'd have to code it yourself. how...