Feature/gui

This commit is contained in:
Mr Finchum 2024-12-30 20:19:49 +00:00
parent c36ab9b733
commit 1512e8efeb
15 changed files with 2328 additions and 299 deletions

View file

@ -8,12 +8,20 @@ This project is a *port* of my earlier work, an collection of [bash script](http
**Please check** if a new branch is available and read the **changelog** to see the progress and current features of the program. The README might sometimes lag behind.
OPTIMA-35 is evolving! The project is transitioning from a terminal-based user interface (TUI) to a graphical user interface (GUI) using Qt (via PySide6). First TUI version was forked to [OPTIMA-35 TUI](https://gitlab.com/python_projects3802849/optima-35-tui). I intend to keep the TUI version functional since it is usefull for headless setup.
**GUI for OPTIMA-35 v0.3.4** with KvArcDark theme
*Last preview until GUI is finished.*
![img](https://gitlab.com/python_projects3802849/optima-35/-/raw/feature/GUI/media/main_tab.png){width=40%}
![img](https://gitlab.com/python_projects3802849/optima-35/-/raw/feature/GUI/media/exif_tab.png){width=40%}
![img](https://gitlab.com/python_projects3802849/optima-35/-/raw/feature/GUI/media/exifeditor.png){width=40%}
## **Current Status**
- While the program works and core features are available, there are currently no safety checks in place. For example, the program will write / save an image without verifying if a file with the same name already exists.
- Additionally, while EXIF data/metadata should be implemented correctly, there is a possibility of overlooked issues. In the worst case, a program might throw an error when handling EXIF data, though this has not occurred so far.
**The README is temporarily outdated** while the GUI version is under development. For the latest updates, please check the **changelog**—I always maintain a detailed log of changes.
### Available Features:
- Initial basic TUI functionality using `simple_term_menu`
- Core features:
- resizing
- renaming
@ -23,10 +31,6 @@ This project is a *port* of my earlier work, an collection of [bash script](http
- Exif management
- Add watermark
**Gif of program in action**
![my-gif](https://gitlab.com/python_projects3802849/optima-35/-/raw/main/media/v0.1.0-demo.gif?ref_type=heads)
## Dependencies
To run **OPTIMA-35**, the following Python libraries are required:
@ -34,29 +38,22 @@ To run **OPTIMA-35**, the following Python libraries are required:
- **pyyaml**: To handle YAML files for configuration and settings.
- **piexif**: To read, modify, and write EXIF metadata.
- **Pillow**: For image processing.
- **simple\_term\_menu**: For building the initial TUI interface.
- **pyside6**: GUI
### Installing Dependencies
You can install the dependencies using `pip`:
```bash
pip install textual pyyaml piexif pillow simple-term-menu
pip install pyyaml piexif pillow pyside6
```
Alternatively, you can use `conda` or its alternatives (`anaconda`, `mamba`, `micromamba`):
```bash
conda install -c conda-forge textual pyyaml piexif pillow simple-term-menu
conda install -c conda-forge pyyaml piexif pillow pyside6
```
## Development Approach
Compared to my previous project, [FTL Save Manager](https://gitlab.com/python_projects3802849/ftl-save-manager), this project emphasizes:
- **Enhanced Modularity**: Classes and components are organized into separate files, making the codebase more maintainable and scalable.
- **Improved Design Principles**: Focus on creating reusable and flexible code for future expansion.
- **Slower Code Pushes**: Updates and code releases will be less frequent but of higher quality, ensuring stability and adherence to best practices.
# Use of LLMs
In the interest of transparency, I disclose that Generative AI (GAI) large language models (LLMs), including OpenAIs ChatGPT and Ollama models (e.g., OpenCoder and Qwen2.5-coder), have been used to assist in this project.
@ -68,8 +65,9 @@ In the interest of transparency, I disclose that Generative AI (GAI) large langu
In cases where LLMs contribute directly to code or provide substantial optimizations, such contributions will be disclosed and documented in the relevant sections of the codebase.
mradermacher gguf Q4K-M Instruct version of infly/OpenCoder-1.5B
unsloth gguf Q4K_M Instruct version of both Qwen/QWEN2 1.5B and 3B
**Ollama**
- mradermacher gguf Q4K-M Instruct version of infly/OpenCoder-1.5B
- unsloth gguf Q4K_M Instruct version of both Qwen/QWEN2 1.5B and 3B
### References
1. **Huang, Siming, et al.**