Bulk thumbnails

note, Jun 4, 2023, on Mitja Felicijan's blog

Make bulk thumbnails of JPGs with ImageMagick.

#!/bin/bash

directory="./images/"
dimensions="360x360"

for file in "$directory"*.jpg; do
  convert "$file" -resize $dimensions "$file" "${file%.*}-thumbnail.jpg"
done


Other notes