ZenScript -(1) : PyImg!


Dive into my personal project showcasing a Python script that streamlines the management of image files by dynamically renaming them according to their creation date. Discover how this efficient solution simplifies file organization and enhances the user experience, revolutionizing your digital asset management.

PyIMG!, the inaugural project of ZenScripts—an automation script series. PyIMG! leverages Python's capabilities to streamline image-related tasks, embodying ZenScripts' commitment to elegance and efficiency. This marks the commencement of a series dedicated to delivering automated solutions with a touch of sophistication

(Get the Raw File) => Get PyIMG! ↗

terminal terminal

[The Why.]

This project was born out of a need for better file organization and to embark on my coding journey. I created the script to simplify managing image files, promoting efficient digital asset management while honing my Python skills. This is my first (published) automation script in python. I used to make many scripts in bash (an interesting shell scripting language) and just wanted to try out python, because I already knew the language.

terminal

[The How.]

The script scans for folders in the current directory, allowing the user to select the one containing images. It then transforms eligible files into neatly renamed versions while placing unconvertible files into a 'failed' folder. This process simplifies image file management and enhances organization.


External Python Dependencie(s) used: Pillow

Before running the script, ensure you have the 'Pillow' plugin installed on your device. If you haven't installed it yet, follow these steps:

  1. Open your command prompt or terminal.
  2. Type the following command and press Enter: pip install Pillow
  3. Next, place the script in the parent directory of the folder containing your images.
  4. Execute the script by running it.
  5. When prompted, provide the name of the folder that houses your images.
  6. The script will proceed to convert eligible files, while any unconvertible ones will be stored in a newly created 'failed' folder.

terminal terminal terminal

[The End.]

In conclusion, this case study project serves as a testament to the power of creativity and coding in simplifying our digital lives. It illustrates the journey from a first Python script to an effective image file management tool, and the limitless potential of learning and innovation in the digital age. May it inspire you to embark on your own coding adventures and discover the solutions that await in the world of technology.

[2023] (Python) @amallalgi