From 63b0dd6f4a11a5699caf44574225c3f045c309dc Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sat, 14 Nov 2026 10:47:48 +0100 Subject: Suggest the real scale factor in the save name The suggested name had _x4 hardcoded. Derive it from the result size. Co-Authored-By: Claude Opus 5.5 --- upscale-qt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/upscale-qt b/upscale-qt index db178e0..3a27212 100755 --- a/upscale-qt +++ b/upscale-qt @@ -418,8 +418,9 @@ class Main(QMainWindow): def save_as(self): job = self.job() src = Path(job.path) + x = round(job.result.width() / job.image.width()) path, _ = QFileDialog.getSaveFileName( - self, 'Save upscaled image', str(src.with_name(f'{src.stem}_x4{src.suffix}')), + self, 'Save upscaled image', str(src.with_name(f'{src.stem}_x{x}{src.suffix}')), 'Images (*.png *.jpg *.jpeg *.webp *.tif *.tiff)') if not path: return -- cgit v1.2.3