for file in *.png; do  
  magick "$file" -resize 24x "${file%.png}_24.png"  
done  
