DEV-Devound
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?  > > 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...