Skip to content

Instantly share code, notes, and snippets.

@BOLL7708
Last active December 16, 2021 23:26
Show Gist options
  • Save BOLL7708/0b8b8379111c1c3472eda3f90e4a9c15 to your computer and use it in GitHub Desktop.
Save BOLL7708/0b8b8379111c1c3472eda3f90e4a9c15 to your computer and use it in GitHub Desktop.
ImageMagick command script to resize an image for Twitch Community Challenges and Channel Rewards
if [%1]==[] goto :eof
:loop
SET filename=%1
magick %filename% -resize 112x112 -quality 100 %filename:.png=_112.png%
magick %filename% -resize 56x56 -quality 100 %filename:.png=_56.png%
magick %filename% -resize 28x28 -quality 100 %filename:.png=_28.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