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
Write ISO to USB Key
Change Alt key to Win key under Xfce4
Embedding resources into binary with Cc
Lua performance in different environments
Add lazy loading of images in Jekyll posts
Edsger W. Dijkstra Manuscripts ebook
60's IBM Computers Commercial
Write and read structs to/from files in Cc
My brand new Plan9/9front desktopplan9
Grep to Less that maintain colors
Currated list of Vim ALE linters
Extending dte editor
Compile drawterm on Fedora 38plan9
Drawing Pixels in Plan9plan9
Cache busting in Hugo