diff --git a/CHANGELOG.md b/CHANGELOG.md index 1852db8..7bdbad5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,22 +1,27 @@ # Changelog +## 1.3.x +### 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. + --- ## 1.2.x -### 1.2.2 Patch: Pyproject file (25.03.23) +### 1.2.2: Patch - Pyproject file (25.03.23) - Fixed `Development Status` Classifier - Added <4.0 python version -### 1.2.1 Patch: Changelog file (25.03.23) +### 1.2.1: Patch - Changelog file (25.03.23) - Patches formation in changelog file. -### 1.2.0 Refactor: Splitting Classes into Separate Files (25.03.23) +### 1.2.0: Refactor - Splitting Classes into Separate Files (25.03.23) - Refactored `gui.py`, which previously contained almost all the code, into multiple files. - Each window's logic is now in its own file, improving code organization. - Window layouts remain in `.ui` folder, while their logic is now properly separated. ## 1.1.x -### 1.1.0 Feature: New Function in Preview Window (25.03.23) +### 1.1.0: Feature - New Function in Preview Window (25.03.23) - Added a new feature to the preview window: **Hold a button to temporarily view the original (unedited) image.** This makes it easier to compare changes. - Minor UI adjustments. diff --git a/src/OptimaLab35/mainWindow.py b/src/OptimaLab35/mainWindow.py index 3006465..fb94e83 100644 --- a/src/OptimaLab35/mainWindow.py +++ b/src/OptimaLab35/mainWindow.py @@ -415,10 +415,14 @@ class OptimaLab35(QMainWindow, Ui_MainWindow): user_data["lens"] = self.ui.lens_comboBox.currentText() user_data["iso"] = self.ui.iso_comboBox.currentText() user_data["image_description"] = self.ui.image_description_comboBox.currentText() - user_data["user_comment"] = self.ui.user_comment_comboBox.currentText() user_data["artist"] = self.ui.artist_comboBox.currentText() user_data["copyright_info"] = self.ui.copyright_info_comboBox.currentText() user_data["software"] = f"{self.name} {self.version} with {self.o.name} {self.o.version}" + if int(self.ui.contrast_spinBox.text()) != 0 or int(self.ui.brightness_spinBox.text()) != 0: + user_data["user_comment"] = f"{self.ui.user_comment_comboBox.currentText()}, contrast: {self.ui.contrast_spinBox.text()}, brightness: {self.ui.brightness_spinBox.text()}" + else: + user_data["user_comment"] = self.ui.user_comment_comboBox.currentText() + return user_data def get_selected_exif(self):