mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-04-23 06:24:43 +00:00
Docstring for save_image
This commit is contained in:
parent
b6f629d644
commit
222c9ba22a
1 changed files with 9 additions and 0 deletions
|
|
@ -203,6 +203,15 @@ def suggest_extension(name, format):
|
|||
|
||||
|
||||
def save_image(img, outfile, format, options=None, autoconvert=True):
|
||||
"""
|
||||
Wraps PIL's ``Image.save()`` method. There are two main benefits of using
|
||||
this function over PIL's:
|
||||
|
||||
1. It gracefully handles the infamous "Suspension not allowed here" errors.
|
||||
2. It incorporates the AutoConvert processor, which will do some
|
||||
common-sense processing given the target format.
|
||||
|
||||
"""
|
||||
options = options or {}
|
||||
|
||||
if autoconvert:
|
||||
|
|
|
|||
Loading…
Reference in a new issue