mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-17 05:40:25 +00:00
Use StringIO instead of temp file
This commit is contained in:
parent
e0c9708e63
commit
6f8a22c5bf
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import os
|
||||
import mimetypes
|
||||
import tempfile
|
||||
from StringIO import StringIO
|
||||
import types
|
||||
|
||||
from django.core.files.base import ContentFile
|
||||
|
|
@ -33,7 +33,7 @@ class IKContentFile(ContentFile):
|
|||
|
||||
|
||||
def img_to_fobj(img, format, autoconvert=True, **options):
|
||||
return save_image(img, tempfile.TemporaryFile(), format, options, autoconvert)
|
||||
return save_image(img, StringIO(), format, options, autoconvert)
|
||||
|
||||
|
||||
def get_spec_files(instance):
|
||||
|
|
|
|||
Loading…
Reference in a new issue