mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-27 10:03:59 +00:00
Save images with an extension
image_filename is the filename without the extension, new_filename does contain it.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user