Skip to content

Commit

Permalink
Merge pull request #63 from NandeMD/bugfix
Browse files Browse the repository at this point in the history
fix for issue #62
  • Loading branch information
TransparentLC authored Jan 25, 2024
2 parents b95c2ef + 1006bbd commit 9b87fd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion task.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ def run(self) -> None:
resized: Image.Image = img.resize((dstWidth, dstHeight), self.config.downsample)
resized.save(self.outputPath)
resized.close()
os.remove(files[-1])
if scalePass:
os.remove(files[-1])

self.progressValue[0] = 0
self.progressValue[1] += 1
Expand Down

0 comments on commit 9b87fd1

Please sign in to comment.