jdriscoll/django-imagekit — Issue #47:  ProcessedImageField does not take django.core.files.File as content
Author: ptone
Created: 2011-11-04 06:10:03+00:00
State: open

If I have a regular imagefield, I can call it's save method with a django File object as the content

but with a ProcessedImageField, this causes PIL to choke

instead the content needs to be a plain python file like

```open('/some/path.jpg', 'rb')```

Not sure if the solution is some form of isinstance check?

```
File "/Users/preston/Projects/Python/virtualenvs/fotw/src/imagekit/imagekit/models.py", line 339, in save
img, content = self._process_content(new_filename, content)
File "/Users/preston/Projects/Python/virtualenvs/fotw/src/imagekit/imagekit/models.py", line 125, in _process_content
img = open_image(content)
File "/Users/preston/Projects/Python/virtualenvs/fotw/src/imagekit/imagekit/utils.py", line 34, in open_image
img = Image.open(target)
File "/Library/Python/2.6/site-packages/PIL/Image.py", line 1980, in open
raise IOError("cannot identify image file")
IOError: cannot identify image file
```