CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Evgeniy Kirpichenko.
Simple iOS utility that slices provided original image onto tiles. Tiles may be used for displaying large images on different detalization levels.
You can find example of tiles usage in EKTilesMakerDemo
project that is very similar to Apple's PhotoScroller sample.
EKTilesMaker
class. createTiles
method.Get your tiles from output folder.
EKTilesMaker *tilesMaker = [EKTilesMaker new];
NSString *imagePath = [[NSBundle mainBundle] pathForResource:@"photo" ofType:@"jpg"];
[tilesMaker setSourceImagePath:imagePath];
[tilesMaker setOutputFolderPath:self.tilesFolderPath];
[tilesMaker setOutputFileName:kTileName];
[tilesMaker setZoomLevels:@[@1, @0.5, @0.25, @0.125]];
[tilesMaker setTileSize:CGSizeMake(256, 256)];
[tilesMaker setOutputFileType:OutputFileTypePNG];
[tilesMaker setCompletionBlock:completion];
[tilesMaker createTiles];
Original image from demo project can be sliced onto 6 parts for 0.125 zoom level and 256x256 tiles size.