Resizing a directory of images

<h3 class="entry-title">Resizing a directory of images</h3>
Posted on



Requires the software packageImageMagick. An important item to note is that command mogrify modifies the file in place and does not create a copy.

mogrify -verbose -resize '40%' *.JPG

 

Source: https://askubuntu.com/questions/1164/how-to-easily-resize-images-via-command-line

mkdir processed; for f in *.JPG; do ffmpeg -i $f -q:v 10 processed/$f; done

Source: Somewhere on stackoverflow.