quantenbrot

Tiling an image for emoji-lols

convert monalisa.jpg  -crop 128x128 +repage m_%02d.png

This will:

  • Generate 128x128 tiles of the image monalisa.jpg
  • Save them as sequentially named files m_(number).png with 2 wide padding, e.g. 01 instead of 1
  • Repage the image, meaning the virtual canvas gets reset to avoid possible display issues