Agamnentzar
Agamnentzar
Each of the knots represents point with 2 control handles like this  So it's x & y of 1st control point, then x & y of the actual point...
paste your code and I'll check it
Ok, so a little bit more details: in photoshop knots relate to points, but in HTML canvas it's curves with control points. to draw a curve you need one control...
You probably also shouldn't floor the coordinates, that will distort the shape.
You need to set the starting point correctly before starting the loop: ```js ctx?.moveTo(knots[knots.length - 1].points[2], knots[knots.length - 1].points[3]) ```
The cssStyle is generated by photoshop at runtime, it's not saved in the file.
The PSD file contains original, unmasked bitmaps for each layer and the mask. The masking itself is dome by photoshop when you open the file. If you want masked result...
Yes, but it might be complicated and it might not work the way that's useful to you. In general if you want to create some specific file structure it's best...
Photoshop will still use pre-generated bitmap stored in the layer, until you edit smart object in the PSD file. So if you want to update linked file, you also need...
That's not possible, ag-psd only gives you a way to read file data, it doesn't replicate entire photoshop renderer, and can't generate new bitmap data based on layer information, sorry.