Merge image_handler from TUI fork

This commit is contained in:
Mr Finchum 2024-12-28 10:51:18 +00:00
parent 2fd144cfd3
commit 36d2c32975
5 changed files with 26 additions and 16 deletions

View file

@ -8,7 +8,8 @@ from ui.tui import SimpleTUI
class Optima35:
# The layout of class Optima35 was originally made by ChatGPT, but major adjustments have been made. To remain transparent, I disclose this.
def __init__(self, settings_file, exif_options_file):
self.version = "0.2.0"
self.name = "OPTIMA-35"
self.version = "0.2.1"
self.utilities = Utilities()
self.image_processor = ImageProcessor()
self.exif_handler = ExifHandler()
@ -132,7 +133,8 @@ class Optima35:
self.settings["output_folder"] = input("Enter path of output folder: ").strip()
self.settings["file_format"] = self.take_input_and_validate(question = "Enter export file format (jpg, png, webp): ", accepted_input = ["jpg", "png", "webp"], accepted_type = str)
self.settings["modifications"] = self.tui.multi_select_menu(
"Select what you want to do", menu_options
f"\n{self.name} v.{self.version} \nSelect what you want to do (esc or q to exit)",
menu_options
)
if "Change EXIF" not in self.settings["modifications"]:
self.settings["copy_exif"] = self.tui.yes_no_menu("Do you want to copy exif info from original file?")