Skip to content

Instantly share code, notes, and snippets.

@BOLL7708
Last active December 16, 2021 23:26
Show Gist options
  • Save BOLL7708/6c25a6c958d8c44faae45c6ea193d407 to your computer and use it in GitHub Desktop.
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
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