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

DateTitle
Drawing Pixels in Plan9plan9
Extract lines from a file with sed
Execute not blocking async shell command in C#
Set color temperature of displays on i3
Easy measure time took in a bash script
AWS EB PyYAML fix
Aerial photography of algae spotted on river Sava
Embedding resources into binary with Cc
Extending dte editor
#cat-v on weechat configuration
Convert all MKV files into other formats
Write and read structs to/from files in Cc
Make B/W SVG charts with matplotlib
Male and female body proportion reference images3d
Sane defaults for tmux with more visible statusbar