Access image data from within GhPython

Is there a way to open an image in GhPython to get all of its pixel data (like RGB values)? Ideally, I would be importing hundreds of images sequentially and processing them (which is why I do not want to use image sampler) .

I would normally do this with PIL/Pillow if this was a standalone python script, but no one has been able to help me with getting those libraries to work in GhPython.

Hi Lawrence,

Check this reply:

1 Like

Thanks, I was able look at his example and implement his strategy for opening images in my own python script.

1 Like