[Image-SIG] How to open "raw" images using PIL?

Alec Bennett wrybread at gmail.com
Tue Jun 16 02:17:21 CEST 2009

I have some "raw" images shot from a Canon DSLR that I'd like to manipulate
using the PIL. I know I can convert them using another program, but if
possible I'd like to do so directly using PIL.

Is this possible with the PIL?

Currently I get something like:

f = "IMG_0025.CR2"
im = Image.open(f)

Traceback (most recent call last):
  File "C:/test.py", line 7, in ?
    im = Image.open(f, mode = "r")
  File "C:\Python24\lib\site-packages\PIL\Image.py", line 1916, in open
    raise IOError("cannot identify image file")
IOError: cannot identify image file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20090616/56f10194/attachment.htm>

More information about the Image-SIG mailing list