Would it be possible to add the option to give a 2D numpy array to put_image_data() for a grayscale image? As it is you have to either turn it into a 3d array with equal values or convert to an Image widget first. It looks like a case of adding another condition to binary_image in utils that says to use the PNG format to save, but I'm not sure if I'm missing places that would be affected.
I made a fork and tried implementing that change and grayscale support is very simple--I would like to contribute if you are open to it so I am also opening a pull request for this (#348)
Would it be possible to add the option to give a 2D numpy array to
put_image_data()
for a grayscale image? As it is you have to either turn it into a 3d array with equal values or convert to an Image widget first. It looks like a case of adding another condition tobinary_image
in utils that says to use the PNG format to save, but I'm not sure if I'm missing places that would be affected.