this project is created to parsed the format in images or resizes them. i'm tired of websites that don't enable parsed more than five images at same time.
thanks to Pillow I can create this tool
- if you can contribuite with a new logic, send a pull request.
- if you like this repo and it's usefull for your, give me a start 🌟
- Added handler to save parsed images in the same folder, use "."
- Added compatibility to relatives paths
- Added quality mode to compress images use -q=""
pip install virtualenv
virtualenv venv -p python3
source venv/bin/activate
.\venv\Scripts\activate
pip install -r requirements.txt
python3 src/app.py -h
Go to Releases
Download the version .tar.gz that you want
pip install imgtl-(version).tar.gz
imgtl -h
- use the modes starting with 2 to infer the image file format, if you only need to convert a specific format use the other modes such as p2w (png to wepb)
imgtl -m="p2w" /home/user/pictures/img-01.png /home/user/pictures/
imgtl -m="2webp" /home/user/pictures/ /home/user/pictures/
imgtl -m="2png" /home/user/pictures/ /home/user/pictures/pngs
imgtl -m="2webp" -q="50" /home/user/pictures/ .
imgtl -m="2jpg" -ws="1000" /home/user/pictures/ .
*in this case the output image is 1000x1000
imgtl -m="2jpg" -ws="1000" -t /home/user/pictures/ .
*in this case the output image conserve aspect ratio