Save images with an extension

image_filename is the filename without the extension, new_filename does
contain it.
This commit is contained in:
Wieland Hoffmann
2014-03-13 11:56:22 +01:00
parent 7baad05206
commit 78720a4f7c

View File

@@ -132,7 +132,7 @@ class Image(object):
new_dirname = os.path.dirname(image_filename)
if not os.path.isdir(new_dirname):
os.makedirs(new_dirname)
shutil.copyfile(self._tempfile_filename, image_filename)
shutil.copyfile(self._tempfile_filename, new_filename)
@property
def data(self):