diff --git a/task.py b/task.py index c06c58b..58fd672 100644 --- a/task.py +++ b/task.py @@ -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