mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-05-19 01:51:08 +00:00
Merge pull request #17 from Shanto/develop
Fixes: CMYK files from Photoshop fails to load with exception -2
This commit is contained in:
commit
25f628de93
1 changed files with 1 additions and 1 deletions
|
|
@ -4,6 +4,6 @@ import tempfile
|
|||
|
||||
def img_to_fobj(img, format, **kwargs):
|
||||
tmp = tempfile.TemporaryFile()
|
||||
img.save(tmp, format, **kwargs)
|
||||
img.convert('RGB').save(tmp, format, **kwargs)
|
||||
tmp.seek(0)
|
||||
return tmp
|
||||
|
|
|
|||
Loading…
Reference in a new issue