DominikGuzei / node-ase-utils

Node package to encode / decode Adobe Swatch Exchange Files (ASE)
MIT License
33 stars 4 forks source link

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

Open akrizs opened 6 years ago

akrizs commented 6 years ago

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 commented 6 years ago

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...