mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-25 17:30:23 +00:00
Fixes: CMYK files from Photoshop fails to load with exception -2
This commit is contained in:
parent
be28b0dffe
commit
6b1aff64c2
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