Fix: Fixed issue when renaming resulted in wrong order.

This commit is contained in:
Mr Finchum 2025-01-23 15:34:28 +01:00
parent 5752b547fd
commit a46390ba82
3 changed files with 7 additions and 4 deletions

View file

@ -1,6 +1,9 @@
# Changelog # Changelog
## 0.3.x ## 0.3.x
### 0.3.4: Fix
- Fixed an issue where renaming images, while converting could result in wrong numbering.
### 0.3.1 - 0.3.3 ### 0.3.1 - 0.3.3
- Repo only: Fix building pipeline - Repo only: Fix building pipeline

View file

@ -170,7 +170,6 @@ class OptimaLab35(QMainWindow, Ui_MainWindow):
def populate_exif(self): def populate_exif(self):
# partly chatGPT # partly chatGPT
# Mapping of EXIF fields to comboboxes in the UI # Mapping of EXIF fields to comboboxes in the UI
print("populate")
combo_mapping = { combo_mapping = {
"make": self.ui.make_comboBox, "make": self.ui.make_comboBox,
"model": self.ui.model_comboBox, "model": self.ui.model_comboBox,
@ -232,6 +231,7 @@ class OptimaLab35(QMainWindow, Ui_MainWindow):
image_files = [ image_files = [
f for f in os.listdir(path) if f.lower().endswith((".png", ".jpg", ".jpeg", ".webp")) f for f in os.listdir(path) if f.lower().endswith((".png", ".jpg", ".jpeg", ".webp"))
] ]
image_files.sort()
return image_files return image_files
def control_before_start(self, process): def control_before_start(self, process):
@ -369,7 +369,7 @@ class OptimaLab35(QMainWindow, Ui_MainWindow):
user_data["user_comment"] = self.ui.user_comment_comboBox.currentText() user_data["user_comment"] = self.ui.user_comment_comboBox.currentText()
user_data["artist"] = self.ui.artist_comboBox.currentText() user_data["artist"] = self.ui.artist_comboBox.currentText()
user_data["copyright_info"] = self.ui.copyright_info_comboBox.currentText() user_data["copyright_info"] = self.ui.copyright_info_comboBox.currentText()
user_data["software"] = f"{self.name} (v{self.version}) & {self.o.name} (v{self.o.version})" user_data["software"] = f"{self.name} (v{self.version}) with {self.o.name} (v{self.o.version})"
return user_data return user_data
def get_selected_exif(self): def get_selected_exif(self):

View file

@ -75,8 +75,8 @@ class Utilities:
"AE-1" "AE-1"
], ],
"user_comment": [ "user_comment": [
"Scanner.NORITSU-KOKI", "Scanner: NORITSU-KOKI",
"Scanner.NA" "Scanner: NA"
] ]
} }
self.write_yaml(file, def_exif) self.write_yaml(file, def_exif)