A bash script to convert images. Must have imagemagick installed.
run having given executable permissions with the following command : -
./compress_jpg.sh [-c] [-r] [-e extension] resolution [filename_or_directory]
or ./compress_jpg.sh --help
for detailed help.
Filenames/filepaths must be inputed within quotation marks if it contains spaces, to avoid errors.