Last active
December 16, 2021 23:26
-
-
Save BOLL7708/6c25a6c958d8c44faae45c6ea193d407 to your computer and use it in GitHub Desktop.
ImageMagick command script to resize an image for Twitch Subscriber Badges and Bit Badges
This file contains 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
if [%1]==[] goto :eof | |
:loop | |
SET filename=%1 | |
magick %filename% -resize 72x72 -quality 100 %filename:.png=_72.png% | |
magick %filename% -resize 36x36 -quality 100 %filename:.png=_36.png% | |
magick %filename% -resize 18x18 -quality 100 %filename:.png=_18.png% | |
shift | |
if not [%1]==[] goto loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment