Created
July 19, 2023 15:25
-
-
Save nothingrealhappen/9751d240277e6383d80b7af0dcd0bbfd to your computer and use it in GitHub Desktop.
Crop Midjourney Pictures from 4x4 to single image for each item
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in *.png; do | |
convert "$file" -crop "2x2@+0+0" -gravity center -repage +0+0 "output_${file%.*}_%d.jpg" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment