##EKTilesMaker 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.
##Usage
- Create instance of
EKTilesMaker
class. - Provide source image file and output folder paths.
- Set tile name.
- Add zoom levels for which tiles should be created.
- Set tiles size and format.
- Provide completion block.
- Call
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];
##Example
Original image from demo project can be sliced onto 6 parts for 0.125 zoom level and 256x256 tiles size.