fixes #435
This commit is contained in:
@@ -83,15 +83,15 @@ def validate_kml(value):
|
||||
|
||||
|
||||
def handle_uploaded_image(i):
|
||||
import StringIO
|
||||
from io import StringIO, BytesIO
|
||||
from PIL import Image, ImageOps, ExifTags
|
||||
import os
|
||||
from django.core.files import File
|
||||
image_str = ""
|
||||
image_str = b''
|
||||
for chunk in i.chunks():
|
||||
image_str += chunk
|
||||
|
||||
imagefile = StringIO.StringIO(image_str)
|
||||
imagefile = BytesIO(image_str)
|
||||
|
||||
|
||||
image = Image.open(i)
|
||||
|
||||
Reference in New Issue
Block a user