Created
June 5, 2017 08:52
-
-
Save andrewmarmion/df2118cc4d1284e367d57188761d3ad5 to your computer and use it in GitHub Desktop.
Using ImageMagick to create tiles for an image
This file contains hidden or 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
| convert myImage.jpg -crop 256x256 \ | |
| -set filename:tile "%[fx:page.x/256]-%[fx:page.y/256]" \ | |
| +repage +adjoin "Tile-%[filename:tile].png" | |
| // converts an image into 256 tiles with the files named as Tile-row_num-column_num.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment