Agamnentzar
Agamnentzar
You have to redraw the canvas of the layer that is embedding that image, it's a bit complicated because you have to transform it correctly, if all depends on how...
You can add new layer, but you still need to draw that layer canvas
You'll need to use `node-canvas` and Canvas api https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D to create canvas element and then set it to layer.canvas
@luco you mean applying transform to the canvas ? Some simple transform can be done with html canvas transforms but most of them (especially warps) require you to do the...
@luco Sorry, but that is beyond the scope of this library, this library is only reading the contents of the PSD file, you'd have to implement image processing yourself.
you can run it either in browser on using nodejs
If you want to use library just follow the readme, install it into your own project using `npm install ag-psd` and then you can read PSD like this ```js const...
You can read explanation here: https://github.com/Agamnentzar/ag-psd#updating-text-layers and see if that helps in your case
The problem is that Photoshop doesn't redraw text layers when you open the file, it expects text layer bitmap to be in the file, so you'd have to draw it...
I think these imports are going to work only in Typescript just change it to ```js const fs = require('fs'); require('ag-psd/initialize-canvas'); // only needed for writing image data and thumbnails...