The simple script is for downscaling images to specific widths or heights. I use it when I need downscale images without an editor in my hand. The primary purpose is to handle a batch of photos.
If you need some assistance or similar software, I could help. Contact me on LinkedIn or Upwork.
You also may need to install some libraries. For example, on MacOS you could do following.
brew install jpeg libpng libtiff openjpeg webp little-cms2
git clone https://github.com/Jakeroid/fit-images-to
cd fit-images-to
python -m venv ./venv
source ./venv/bin/activate # (if you use fish shell then use: . ./venv/bin/activate.fish)
pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
- Downscale all images to height 200px from ./input directory and save them inside ./output directory.
python main.py height 200 ./input ./output
- Downscale all images to width 350px from /home/user1/Downloads and save them inside /home/user1/Images.
python main.py width 350 /home/user1/Downloads /home/user1/Images