working with raw image files
kafooster
dmozejko at gmail.com
Mon Jun 13 16:41:16 EDT 2011
Wanderer: by *.raw I mean images with .raw extension, pure pixel data
without header
http://en.wikipedia.org/wiki/Raw_image_format
That is a clear and nice code however I think Image.open cannot
handle .raw since i get error
image1 = Image.open("hand.raw", "rb")
File "D:\Python27\lib\site-packages\PIL\Image.py", line 1947, in
open
raise ValueError("bad mode")
ValueError: bad mode
More information about the Python-list
mailing list