node-ase-utils icon indicating copy to clipboard operation
node-ase-utils copied to clipboard

The value of "offset" is out of range. It must be >= 0 and <= 4524. Received 4526​​

Open akrizs opened this issue 7 years ago • 1 comments

I'm getting this error when trying to decode an .ase file saved from illustrator that has the color values store as HSB...

Saw that only the color spaces RGB, CMYK, LAB and GRAYSCALE are registered in the constants file...

Would it be time consuming for you to add the HSB space in?...

Will leave you with the Error

​​The value of "offset" is out of range. It must be >= 0 and <= 4524. Received 4526​​ at ​​​boundsError​​​ ​internal/buffer.js:55​ at ​​​Buffer.readUInt16BE​​​ ​internal/buffer.js:221​ at ​​​getChar16​​​ ​./node_modules/ase-utils/decode.js:149​ at ​​​readBlockName​​​ ​./node_modules/ase-utils/decode.js:103​ at ​​​Object.decode​​​ ​./node_modules/ase-utils/decode.js:46​ at ​​​Object.<anonymous>​​​ ​app.js:53:2​

akrizs avatar Aug 30 '18 20:08 akrizs

figured out it had something to do with groups inside the swatch and nothing with the hsb value... looks like adobe cc doesn't export hsb values in swatches...

Would be cool to be able to decode groups/folders though...

Edit: Well realized again that it has nothing to do with groups/folders... sorry for the spam. Its related to gradients in some way or another...

akrizs avatar Aug 30 '18 22:08 akrizs