iphone tiling an image

前端 未结 4 1249
夕颜
夕颜 2020-12-29 16:50

I have an image which is 1280 x 1664 and I want to use the ScrollViewSuite example that Apple gives us but I need to cut this image up to multiple zoom levels.

So, d

4条回答
  •  醉酒成梦
    2020-12-29 17:25

    great find. I did a bit of researching from what you found and I've managed to add the row and col to the output filename. I've also resized the image to what percentage I want the image to be. So I can now do it all from 1 large image.

    convert bigimage.png -resize 25% -crop 256x256 -set filename:tile "%[fx:page.x/256+1]_%[fx:page.y/256+1]" +repage +adjoin "tile_25_%[filename:tile].png"
    

    Thanks a lot for helping me out, its saved me a lot of time. Hopefully I've helped you out?

提交回复
热议问题