Skip to main content
kayr23628964
Known Participant
September 21, 2025
Question

UXP imageData.getData() crashes photoshop when document.mode == CMYK

  • September 21, 2025
  • 0 replies
  • 53 views
Photoshop 26.9.0 release on osx 14.4.1
 
const inPixels = await imaging.getPixels({ documentID: doc.id, layerID: layer.id });
const inBuffer = await inPixels.imageData.getData();
 
this code works with document.mode grayscale, rgb, and lab
it fails gracefully with an error popup with bitmap, index, and multichannel
but it crashes photoshop with CMYK