mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-26 01:40:24 +00:00
parent
ac27c88e4c
commit
96e2365a26
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ def save_image(img, outfile, format, options=None, autoconvert=True):
|
|||
# So if we have a problem saving, we temporarily increase it. See
|
||||
# http://github.com/jdriscoll/django-imagekit/issues/50
|
||||
old_maxblock = ImageFile.MAXBLOCK
|
||||
ImageFile.MAXBLOCK = img.size[0] * img.size[1]
|
||||
ImageFile.MAXBLOCK = max(img.size) ** 2
|
||||
try:
|
||||
img.save(outfile, format, **options)
|
||||
finally:
|
||||
|
|
|
|||
Loading…
Reference in a new issue