Version: Photoshop v26.3
Document: any 16bit document
Key parameter of imaging.getPixels: “componentSize: 8”
Most importantly, it does works in 25.0, but 26.3 does not.
Version: Photoshop v26.3
Document: any 16bit document
Key parameter of imaging.getPixels: “componentSize: 8”
Most importantly, it does works in 25.0, but 26.3 does not.
What is your code? Can you share that part?
try this one. open a 16bit psd then click button
works at 25.0 but will break in latest
And if you set component size to 16 instead 8?
Of course it will work.
The thing is, if the code worked in 25.0, but broke in the latest version. I have to confirm whether it was a breaking change or a bug.
I have already write own code to convert 16bit pixel data to 8bit pixel data.
If that worked before I believe it was a bug. Imagine you have 8bit document asking for 16bit. Where do you get those additional 50% of data from?
I think it can just act like that when I change the document mode from 8bit to 16bit in photoshop.
You should probably check for mode before geting pixels
If the only option for “componentSize” is to pass the current doc’s componentSize to it.
Why was this option designed? I think Photoshop can just get the current componentSize inside the API.