Skip to content

Instantly share code, notes, and snippets.

@pwign
Created December 10, 2019 15:42
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pwign/2f0c19d7ce4aca72bb9b589b8e108e24 to your computer and use it in GitHub Desktop.
Save pwign/2f0c19d7ce4aca72bb9b589b8e108e24 to your computer and use it in GitHub Desktop.
For converting 64x32 Minecraft skin to 64x64 format using ImageMagick
convert input.png -background transparent -extent 64x64 \
\( input.png -crop 4x4+4+16 -flop \) -geometry +20+48 -composite \
\( input.png -crop 4x4+8+16 -flop \) -geometry +24+48 -composite \
\( input.png -crop 4x12+8+20 -flop \) -geometry +16+52 -composite \
\( input.png -crop 4x12+4+20 -flop \) -geometry +20+52 -composite \
\( input.png -crop 4x12+0+20 -flop \) -geometry +24+52 -composite \
\( input.png -crop 4x12+12+20 -flop \) -geometry +28+52 -composite \
\( input.png -crop 4x4+44+16 -flop \) -geometry +36+48 -composite \
\( input.png -crop 4x4+48+16 -flop \) -geometry +40+48 -composite \
\( input.png -crop 4x12+48+20 -flop \) -geometry +32+52 -composite \
\( input.png -crop 4x12+44+20 -flop \) -geometry +36+52 -composite \
\( input.png -crop 4x12+40+20 -flop \) -geometry +40+52 -composite \
\( input.png -crop 4x12+52+20 -flop \) -geometry +44+52 -composite \
output.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment