Resimleri ortalı halde croplama

#!/bin/bash
for i in $(ls ./PNG);do 
        name=$(echo "$i" | sed "s/_/ /g" | awk '{print $3}');
        convert PNG/$i -gravity Center -crop 300x300+0+0 +repage PNG/icon_$name;
        #echo "$name";
done