Skip to content

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

Open
qichaoch opened this issue Sep 14, 2017 · 11 comments
Open

PSD with RGB channel 16 or higher can not be correctly parsed #105

qichaoch opened this issue Sep 14, 2017 · 11 comments

Comments

@qichaoch
Copy link

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

@fabulousduck
Copy link
Collaborator

Hey @qichaoch. I am at the moment not able to research your issue.
I will do this over the weekend and report what my findings are in this issue thread.

@fabulousduck
Copy link
Collaborator

fabulousduck commented Sep 16, 2017

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 friend_16.psd only has one layer ? Is this supposed to be this way? because without the layer ofcourse there wont be any layers as there are none in the file

@meltingice
Copy link
Owner

meltingice commented Sep 16, 2017 via email

@fabulousduck
Copy link
Collaborator

I will see about making a PR for this tonight.

@linkesch
Copy link
Contributor

linkesch commented Mar 1, 2018

@fabulousduck What's the status on this? I ran into the same problem today.

@slevy85
Copy link

slevy85 commented Dec 16, 2018

Hi, I think I am having the same problem

@aleczratiu
Copy link

Any news about this issue ?

@mihnsen
Copy link

mihnsen commented May 9, 2021

Seems like a fix on PR: #175

@velara3
Copy link

velara3 commented Feb 28, 2024

Any update? @mihnsen that update was rejected.

@freakpazo
Copy link

Any update on this?

@velara3
Copy link

velara3 commented Mar 10, 2024

Can someone patch make a PR for this? Also, is there two repositories / two branches of psd.js? If so why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants