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
Install Plan9port on Linuxplan9
Drawing Pixels in Plan9plan9
Display xterm color palette
Extend Lua with custom C functions using Clangc
Extending dte editor
Cronjobs on Github with Github Actions
Mount Plan9 over networkplan9
Embedding resources into binary with Cc
Download list of YouTube files
Alacritty open links with modifier
Lua performance in different environments
Add lazy loading of images in Jekyll posts
Parse RSS feeds with Lua
Convert all MKV files into other formats
Uninstall Ollama from a Linux box