alerte-secours/app/scripts/images-resize-and-center-all
devthejo 3e56818c1d chore(to-monorepo): import as-app repo into app
git-subtree-dir: app
git-subtree-mainline: b28b08a80b
git-subtree-split: a6c3dc2641
2026-03-09 08:54:57 +01:00

7 lines
No EOL
195 B
Bash
Executable file

#!/bin/bash
resize=${1:-"48x48"}
for file in *.png; do
convert "$file" -resize "${resize}" -background none -gravity center -extent "${resize}" "$file"
echo "Resized and centered $file"
done