Skip to main content
Inspiring
April 27, 2015
Question

How to get the color of a pixel

  • April 27, 2015
  • 1 reply
  • 597 views

Hi there,

i used the color Sampler

    app.activeDocument.colorSamplers.removeAll();
    var theSampler = app.activeDocument.colorSamplers.add([1,1]);

to get the color of that specific pixel. Worked until recently. Now it throws me:

"General Photoshop error occurred. This functionality may not be available in this version of Photoshop.

- The command "Make" is not currently available."

Does anybody know of another way to get the color of a pixel OR how to get the color Sampler to work again?

Thanks in advance and best regards!

Jochen

This topic has been closed for replies.

1 reply

c.pfaffenbichler
Community Expert
Community Expert
April 27, 2015

What are the image’s Color Mode, bit depth, size and what are the Ruler Units?

Does this problem occur with all images or only some? 

ZHackAuthor
Inspiring
April 27, 2015

Color Mode: RGB

Bit Depth: 8bit

Ruler Units: EUREKA! It was millimeter, when i changed it to pixel it worked.

Thanks a lot!

tl; dr;
If you get this error, try to change the ruler units