mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 02:36:17 +03:00
Merge pull request #1219 from radarhere/jpeg_image_plugin
Fixed variable name in JpegImagePlugin
This commit is contained in:
commit
b4c8208e7e
|
@ -704,7 +704,7 @@ def _save_cjpeg(im, fp, filename):
|
||||||
tempfile = im._dump()
|
tempfile = im._dump()
|
||||||
subprocess.check_call(["cjpeg", "-outfile", filename, tempfile])
|
subprocess.check_call(["cjpeg", "-outfile", filename, tempfile])
|
||||||
try:
|
try:
|
||||||
os.unlink(file)
|
os.unlink(tempfile)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user