Image management and conversion in Linux

Scale images

Scale all images to minimum measurements of 200x150 and maximum of 275x225. IMPORTANT: this will overwrite the original image!

mogrify '*.jpg[!200x150<]'
mogrify '*.jpg[!275x225>]'

Convert .webp to .jpg with ffmpeg

for x in ls *.webp; do  ffmpeg -i $x ${x%.webp}.jpg; done