Code: Select all
convert "livingroom0-2560x1280.jpg" -crop 512x512 -set filename:tile "%[fx:page.x/512]_%[fx:page.y/512]" \
+repage "tile_%[filename:tile].png"
Can anyone give me a hint how to do this?
My best effort so far is:
Code: Select all
convert "livingroom0-2560x1280.jpg" -crop 512x512 -set filename:yLoc "%[fx:page.y/512]" \
-set filename:xLoc "%[fx:page.x/512]" +repage "tile_%[filename:xLoc]_%[filename:yLoc].png"