From 27367443ffd9c48f6fae99e9d532b7057e4068de Mon Sep 17 00:00:00 2001 From: "Mr. Finchum" Date: Thu, 27 Mar 2025 12:05:56 +0100 Subject: [PATCH] fix: Fixed insert exif feature --- CHANGELOG.md | 3 +++ src/OptimaLab35/mainWindow.py | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bdbad5..10fef5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog ## 1.3.x +### 1.3.1: Fix - Fixed insert exif not working +- Fixed the feature that inserted exif into images without modifying them. + ### 1.3.0: Feature – Write Adjustments into EXIF - Changes to contrast and brightness are now recorded in the EXIF comment section (labeled *Scanner* in the program). - This allows users to track what adjustments were made to an image. diff --git a/src/OptimaLab35/mainWindow.py b/src/OptimaLab35/mainWindow.py index fb94e83..b9a5ec1 100644 --- a/src/OptimaLab35/mainWindow.py +++ b/src/OptimaLab35/mainWindow.py @@ -341,7 +341,8 @@ class OptimaLab35(QMainWindow, Ui_MainWindow): def control_ending(self, name_lst): for item in name_lst: try: - int(item[-1]) + print(item[-5]) + int(item[-5]) except ValueError: return False return True @@ -377,6 +378,7 @@ class OptimaLab35(QMainWindow, Ui_MainWindow): return image_list = self.image_list_from_folder(self.settings["input_folder"]) + print(image_list) if not self.control_ending(image_list): QMessageBox.warning(self, "Warning", f"Error: one or more filenames do not end on a number.\nCan not adjust time") self.toggle_buttons(True)