About This File
What's New in Version 2.0.0
Update: Even though the scripts seem simple enough, I decided to make them easier for the masses to use. I broke apart the files to separate the processes, and renamed them so they should be listed first in the folder.
If you have python 3 installed already:
Just install the dependencies, drop the .py files in any directory full of images, then doubleclick the files in the order below:
_1_shrink.py will shrink the width and/or height under the specified dimensions while maintaining the aspect ratio. Variables can easily be adjusted within the script.
_2_combine.py will open your _Background.png and attach and center each image within the folder, and overwrite the existing image with the new background.
_3_width_75percent.py shrinks the width of each file in the directory for widescreen displays.
To install Python:
1. Install python 3 - https://www.python.org/downloads/ (Make sure to click the checkbox to add path in environment variables when installing)
2. Install PIP if it's not installed along with PYTHON (I can't remember if it does)
- Download get-pip.py to a folder on your computer - https://bootstrap.pypa.io/get-pip.py
- Open a command prompt and navigate to the folder containing get-pip.py.
- Run the following command: python get-pip.py
- Pip is now installed!
3. Install PIL and python-resize-image
- Run these commands in your command prompt:
- pip install pillow
- pip install python-resize-image
4. Follow steps above.
1. BACK UP YOUR ARTWORK BEFORE RUNNING SCRIPT. IT WILL REPLACE ALL IMAGES IN WHATEVER FILE IT IS RAN FROM.
2. Change _Background.png to whatever wheel art you want, it should work.
3. The _1_shrink.py script will change all art to less than 200px width and/or 100px height by default. That can be altered to any custom size from within the script.
4. I wrote this script in quick fashion to update my MAME wheel and figured I'd share. It works fine for me, but I'm not responsible for anything that goes wrong.
5. Written on Windows, but probably would work on Linux.