ALL BUSINESS ENGLISH ARTICLES MICROSOFT EXCEL TIPS PYTHON

How to run multiple versions of a “Convert Images” python script in Excel

How to run multiple versions of a “Convert Images” python script in Excel

Convert Images GUI

EN – This script, **`batch_image_converter_ver4.py`**, is a Python-based GUI application for batch image conversion. Here’s what it does:

1. **Graphical User Interface (GUI):**
– It provides a user-friendly interface using the `tkinter` library, allowing users to interact without needing to write code.

2. **File Selection:**
– Users can select multiple image files of various formats (e.g., `.webp`, `.jpg`, `.png`, `.bmp`, `.tiff`, `.gif`) using a file dialog.

3. **Output Format Selection:**
– A dropdown menu allows users to choose the desired output image format (e.g., PNG, JPEG, BMP, TIFF, GIF).

4. **Batch Conversion:**
– The script processes all selected files and converts them into the chosen format.
– It preserves the original file names but updates their extensions based on the selected output format.

5. **Output Folder Selection:**
– Users can specify a folder where the converted images will be saved.

6. **Error Handling:**
– The script handles errors gracefully, such as missing input files, unsupported formats, or issues during conversion, displaying appropriate error messages.

7. **File Display:**
– Selected files are displayed in a listbox within the GUI for users to review before conversion.

8. **Dynamic Window Centering:**
– The window is centered on the screen for better usability.

9. **Script Metadata:**
– Displays the script’s name, version (`4.0.0`), and author (`Tryfon Papadopoulos`) at the bottom of the window.

### How It Works:
1. Launch the script.
2. Use the **”Select Files”** button to choose images for conversion.
3. Choose an output format from the dropdown menu.
4. Click the **”Convert Images”** button, and a folder selection dialog will appear.
5. The script converts the images and saves them in the chosen folder.
6. A success or error message is displayed based on the process’s outcome.

This tool is useful for users needing to quickly convert multiple image files into different formats without manual effort.


Convert Images GUI - GR

GR – Αυτό το script **`batch_image_converter_ver4_GR.py`** είναι μια εφαρμογή μετατροπής εικόνων με γραφική διεπαφή χρήστη (GUI), γραμμένη σε Python.

### Τι κάνει:
1. **Δημιουργία GUI:**
– Το script χρησιμοποιεί τη βιβλιοθήκη `tkinter` για τη δημιουργία μιας εύχρηστης διεπαφής.

2. **Επιλογή Αρχείων:**
– Ο χρήστης μπορεί να επιλέξει πολλά αρχεία εικόνων (π.χ. `.webp`, `.jpg`, `.png`, `.bmp`, `.tiff`, `.gif`) μέσω ενός παραθύρου διαλόγου.

3. **Επιλογή Μορφής Εξόδου:**
– Παρέχεται ένα αναπτυσσόμενο μενού για επιλογή της μορφής εξόδου (π.χ. PNG, JPEG, BMP, TIFF, GIF).

4. **Μετατροπή Εικόνων:**
– Οι επιλεγμένες εικόνες μετατρέπονται στη μορφή που επιλέγει ο χρήστης.
– Οι μετατραπείσες εικόνες αποθηκεύονται σε φάκελο που ορίζει ο χρήστης.

5. **Λίστα Επιλεγμένων Αρχείων:**
– Τα επιλεγμένα αρχεία εμφανίζονται σε λίστα μέσα στο GUI για έλεγχο.

6. **Επιτυχής Ολοκλήρωση:**
– Εμφανίζεται μήνυμα επιτυχίας μετά τη μετατροπή των αρχείων.
– Σε περίπτωση σφάλματος κατά τη μετατροπή, εμφανίζεται αντίστοιχο μήνυμα σφάλματος.

7. **Κεντράρισμα Παραθύρου:**
– Το GUI είναι κεντραρισμένο στην οθόνη για καλύτερη εμφάνιση.

8. **Πληροφορίες Σχετικά με το Script:**
– Στο κάτω μέρος του παραθύρου εμφανίζονται το όνομα του script, η έκδοση (`4.0.0`) και ο συγγραφέας (`Tryfon Papadopoulos`).

### Πώς Λειτουργεί:
1. Ο χρήστης ανοίγει την εφαρμογή.
2. Επιλέγει εικόνες για μετατροπή μέσω του κουμπιού **”Select Files”**.
3. Επιλέγει τη μορφή εξόδου από το αναπτυσσόμενο μενού.
4. Πατά το κουμπί **”Convert Images”** και επιλέγει φάκελο αποθήκευσης.
5. Οι εικόνες μετατρέπονται και αποθηκεύονται στον επιλεγμένο φάκελο.

### Ιδανικό για:
– Γρήγορη μαζική μετατροπή εικόνων σε διαφορετικές μορφές μέσα από ένα απλό και εύχρηστο περιβάλλον εργασίας.

Views: 6

Comments are closed.

Pin It