this script converts jpeg or jpg images to png and from png to jpg
-
Run script with python
python3 imgconverter.py -f [format type (png/jpg)] -i [image] [-o save the image with a new name] [-s path save]
-
Give permission of execution
chmod u+x imgconverter.py
-
Run script
./imgconverter.py -f [format type (png/jpg)] -i [image] [-o save the image with a new name] [-s path save]
-
for more help use
./imgconverter.py --help
pip3 install Pillow