Shell script to automatically create thumbnails of all images in a directory.
sudo apt install imagemagick
To run this, you must define the following parameters:
Output image size, WxH
Output image quality with percent sign
Output directory without first slash
bash index.sh 192x192 50% output
This will resize all images in the current directory to 192x192 with 50% JPEG quality and save them to /output/filename
.
List of image types to convert, prepended by ls (Default ls \*.jpg \*.png \*.jpeg
)