Error: Photoshop Error. Code: -1. When using `imaging.getPixels` in 16bit document

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.

1 Like

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?