cazette/misc/script/resize-illustrations.sh
William Petit 8e09f7ae3b
All checks were successful
kipp-news/pipeline/head This commit looks good
feat: initial commit
2025-01-19 21:04:20 +01:00

10 lines
226 B
Bash
Executable File

#!/bin/bash
FILES=$(find illustrations -maxdepth 2 -name '*.jpg' -printf '%p ')
for f in $FILES; do
small_dir=$(dirname $f)/small
mkdir -p "$small_dir"
magick convert -resize 75% "$f" "$small_dir/$(basename $f)"
done