Open lancejpollard opened 10 months ago
Not sure why the code is not getting sourcemapped to TypeScript (unminified), I see the //#sourceMappingURL=index.js.map
in the dist/index.js file, is this fixable? I'll open another issue.
@pastelmind any ideas about why this might not be working in my examples?
I created this PSD file.psd.zip from this PNG file.png.zip, using https://github.com/dlemstra/magick-wasm . That magick library (for the browser) works on converting PNG to JPG/etc., and I saved the bytes output from the selected browser file to a
.psd
file on my computer, and that is the contents offile.psd.zip
. That psd seems to render on my Mac (and with CMD+space it shows large):That png itself was generated from another png (I'm playing with magick-wasm), if that matters. But it renders as a PSD locally if I say the bytes to a
.psd
file, but I get this error inPsd.parse(arrayBuffer)
:This is occurring whether or not I'm calling
Psd.parse
in Node.js or the browser. So it fails to parse the PSD, and so I can't render the PSD in the browser.Any ideas what is wrong with this PNG, or why this isn't parsing?
I get the same error when trying to parse a JPEG as well, so not sure.
My messy code, with the PSD functionality temp hacked in for now: