DEV-Devound
DEV-Devound
> See section on smart objects: https://github.com/Agamnentzar/ag-psd/blob/master/README_PSD.md#smart-objects > > Be aware that updating smart objects has the same issues that updating text or vector layers, PSD file keep s prerendered...
> See section on smart objects: https://github.com/Agamnentzar/ag-psd/blob/master/README_PSD.md#smart-objects > > Be aware that updating smart objects has the same issues that updating text or vector layers, PSD file keep s prerendered...
> You need to add the file to `psd.linkedFiles` like this: > > ```js > psd.linkedFiles = [ > { > "id": "20953ddb-9391-11ec-b4f1-c15674f50bc4", > "name": "cat.png" > "data": fileContentsAsUint8Array, >...
> You need to add the file to `psd.linkedFiles` like this: > > ```js > psd.linkedFiles = [ > { > "id": "20953ddb-9391-11ec-b4f1-c15674f50bc4", > "name": "cat.png" > "data": fileContentsAsUint8Array, >...
> `data` should be Uint8Array, you also will not see the new image unless you update the smart object in Photoshop. To see the change right away you need to...
> are you sure `layerToUpdate` is not undefined ? thanks, that was the problem, but now its having the same error of the text layer, can something be done to...
> `data` should be Uint8Array, you also will not see the new image unless you update the smart object in Photoshop. To see the change right away you need to...
> You just assign it a new canvas, node-canvas has the same api as regular javascript canvas: https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API should this work? `const newImageBuffer = fs.readFileSync('Profile.png'); const newImage8Array = new Uint8Array(newImageBuffer);...
> You just assign it a new canvas, node-canvas has the same api as regular javascript canvas: https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API do you have any code doing so? Or how can i implement...
should it work like this? 