I am trying to convert an array into a image (tif) for compression (it will be undone at the other end). However, I'm falling at the first hurdle...
I have the following:
pillow_image = Image.fromarray(image_data)
Which gives me this error:
File "/Users/workspace/test-app/env/lib/python2.7/site-packages/PIL/Image.py",line 2155, in fromarray arr = obj.array_interface AttributeError: 'tuple' object has no attribute 'array_interface'
What I'm I doing wrong here?