Breaking Down the Magic
bashfor f in *.png; do echo $f; magick $f -resize 50% small_$f; done
Part by part:
for f in *.png → Loop through every .png file in this folder
do → Start the loop body
echo $f → Print the filename (so you can see progress)
magick $f → Take the current file (whatever $f is)
-resize 50% → Make it half the size
small$f → Save it with “small“ in front of the original name
done → End the loop