-
Notifications
You must be signed in to change notification settings - Fork 398
PSD with RGB channel 16 or higher can not be correctly parsed #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey @qichaoch. I am at the moment not able to research your issue. |
Hey @qichaoch. after a little look in the color.coffee file, You can see that it only converts to 8 bit colors and not 16 bit. I will experiment a little bit to see if i can make it work for 16 bit. Also, I have noticed that the |
PSD.rb has 16-bit support so it shouldn't be too difficult to implement.
…--
Ryan LeFevre (@meltingice)
Sr. Software Engineer
HODINKEE
________________________________
From: Ryan Vlaming <[email protected]>
Sent: Saturday, September 16, 2017 1:35:55 PM
To: meltingice/psd.js
Cc: Subscribed
Subject: Re: [meltingice/psd.js] PSD with RGB channel 16 or higher can not be correctly parsed (#105)
Hey @qichaoch<https://github.com/qichaoch>. after a little look in the color.coffee<https://github.com/meltingice/psd.js/blob/master/lib/psd/color.coffee#L6> file, You can see that it only converts to 8 bit colors and not 16 bit. I will experiment a little bit to see if i can make it work for 16 bit.
Also, thank you for providing the files, this makes my life a lot easier when testing
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#105 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAHtueEBm0crXY5tvdLr3fMuozQEgMRPks5sjAb7gaJpZM4PXI5_>.
|
I will see about making a PR for this tonight. |
@fabulousduck What's the status on this? I ran into the same problem today. |
Hi, I think I am having the same problem |
Any news about this issue ? |
Seems like a fix on PR: #175 |
Any update? @mihnsen that update was rejected. |
Any update on this? |
Can someone patch make a PR for this? Also, is there two repositories / two branches of psd.js? If so why? |
Psd with RGB channel 16 has no children in layers property after the file is parsed. But after I change the RGB channel to be 8, all layers can be found.
Here is my code
var PSDAPP = require("psd"); // var file = "friend.psd"; var file = "sample16.psd"; PSDAPP.open(file).then(function(psd){ var retTree = psd.tree(); console.log(retTree); });
testFiles.zip
The text was updated successfully, but these errors were encountered: