-
Getting pixel data in Photoshop scripts with JavaScript?
Hi! I’m in the process of trying to write a Photoshop script to perform pixel sorting.
While there are many ways of achieving the effect, a common (and simple) method is to perform a threshold on the image, then grab all of the pixels above the brightness threshold and sort them along some dimension (x vs y or some other vector) by brightness.
Obviously in order to do this I need to have access to all the pixels in the image as RGBA values, as a data matrix or some other structure.
Is there any way to access all of the pixel information in an image via JavaScript? I feel like there must be a simple way to do it but I can’t seem to find good information on this.
Thanks! :]
-Vince