Generate tiles from large photos (iOs PhotoScroller)

后端 未结 3 1531
耶瑟儿~
耶瑟儿~ 2021-02-06 16:30

I\'m studdying the WWDC session #104 for mastering UIScrollViews. I need to create a script or find a tool or write a script to generate the tiles needed for th

3条回答
  •  执笔经年
    2021-02-06 16:50

    This script will automatically generate all the tiles you need at all the different resolutions:

    http://www.mikelin.ca/blog/2010/06/iphone-splitting-image-into-tiles-for-faster-loading-with-imagemagick/

    A small heads up: that script will name everything with 100, 50, etc. scale factors rather than 1000, 500, etc. you can adjust for this by changing 1000 to 100 in the tileForScale: method in TilingView.m in the PhotoScroller example.

提交回复
热议问题