Psd.js Parsing The Color Of A Text Layer
I am using PSD.JS (a photoshop PSD file parser for NodeJS and browsers) to parse a few PSD files. When the parser extracts the information for a text layer, the color information i
Solution 1:
PSD.js mainainer here.
After some digging in the source code i discovered that this image channel parsing follows the js canvas convention of pixel channeling as discribed here.
as the doc states:
Parse the image data.
The resulting image data will be formatted to match the Javascript Canvascolor format.
e.g. [R, G, B, A, R, G, B, A].
So this has nothing to do with the psd file format or the image in question, it is simply because we parse it this way so you can conveniently apply the buffer to a canvas.
Post a Comment for "Psd.js Parsing The Color Of A Text Layer"