I am creating a kind of 'map' in my app. This is basically only viewing an image with an imageView/scrollView. However, the image is huge. Like 20,000x15,000 px or something. How can I tile this image so that it fits? When the app tiles by itself, it uses way too much memory, and I want this to be done before the app I launched, and just include the tiled, not the original image. Can photoshop do this? I have not done a complete search for this yet, as I am away, and typing on an iPhone with limited network connection..
Create tiled images for CATiledLayer
2.7k Views Asked by Sti At
2
There are 2 best solutions below
0
Andrea
On
CATiledLayer is one way to do it and of course the best if you can pre-tile the images downloading them from the internet (pay attention on how many connection you are going to open) or embedding them(increasing overall app size), the other is memory map the image on the file system (but an image with that res could take about 1GB), take a look at this question it could be an intersteing topic SO question about low memory scenario
Related Questions in IOS
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Is the transactionReceipt data present in dataWithContentsOfURL?
- UIWebView Screen Fitting Issue
- ZXingObjC encoding issues
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Slow performance on ipad erasing image
- Swift code with multiple NSDateFormatter - optimization
- iOS 8.3 Safari crashes on input type=file
- TTTTimeIntervalFormatter always returns strings in English
- How do I add multiple in app purchases in Swift Spritekit?
- Setup code for xibs in iOS. -awakFromNb:
- iOS Voice Over only reads out the title of any alert views
Related Questions in COCOA-TOUCH
- How to generate request format for WCF web service method for Mac and iPhone
- Application crashes when move from main view controller to another view controller, asks call a stack
- What sort of assets does PHAssetMediaTypeAudio fetch?
- Handoff icon not disappearing from the phone
- How can I use AutoLayout to place view exactly above other?
- How display notification on IOS 8 like in google maps in navigation time
- How can I modally present a UIViewController on another Storyboard that's embedded in a UINavigationController?
- Imports and includes in header files - when is it okay?
- How to listen to changes in Camera authorization status?
- What types/sizes of images do you need when using UIImage full screen?
- Change position of UIImageView when Animating in NSArray
- UITableViewAutomaticDimension + AFNetworking
- Get name of img from for loop
- Multiple CGContextRefs?
- How do i change for background colors or themes for all my screens while clicking one button in setting page for my app in ios, Using objectve c
Related Questions in UISCROLLVIEW
- How Do I Load or Update a View From NSObject Class After Getting the Data?
- iOS 7 - Layout advice
- UIScrollView with Adaptive Layout
- How to get the contentSize, zoomScale and contentOffset of scrollView properly in my case?
- how to disable diagonal scrolling but still be able to scroll horizontally and vertically
- Why my image is not display immediately after downloaded?
- Limit UITableView scroll speed like Instagram does it
- ScrollView -> View (Label + Label + TableView) and autolayout
- How to make UIScrollView scrolling all content inside it
- Programmatic hide/unhide edges of UIScrollView in Swift while using autolayout
- How do you use auto layout in a scroll view?
- Set last scroll position to UITextView before view appears
- ios Adding SubView to a ScrollView not on center
- Set UIScrollView.setContentOffset without scrolling?
- How to achieve this custom Scroll bar in IOS or something similar to it?
Related Questions in UIIMAGEVIEW
- How Do I Load or Update a View From NSObject Class After Getting the Data?
- Trying to make simple UIImageVIew animation
- In UITableViewCell, UIImageView content repeats after some cells using AFNetworking
- UIImage slide on/off inside UIImageView iOS
- Aspect fill and Aspect fit swift
- Auto Layout with UIImageView is producing incorrect view layout when an image is shown
- Load image previously saved from the camera roll
- What types/sizes of images do you need when using UIImage full screen?
- How can I get an image to fit the whole screen?
- Change position of UIImageView when Animating in NSArray
- How to remove space of hidden UIImage?
- iOS: Image view aspect fit with corner radius
- Slight delay before image blurred
- Two gestureRecognizer interfering with each other?
- Blur Effect on TableViewCell when scroll
Related Questions in CATILEDLAYER
- CALayer not drawing where outlined
- How to optimize drawing of a UIView that contains subviews with CATiledLayer layers
- Detect touches within UIScrollView and CATilerLayer
- How to correctly handle threading when drawing Core Data entity information with CATiledLayer
- Objective-C libraries wrapping Core Text / Core Image?
- CATiledLayer and UIImageView what's the big deal between them?
- Present and zoom large images on iOS without CATiledLayer
- taking image snapshot of CATiledLayer-backed view in UIScrollView
- How to draw markers on a zoomable UIView using UIScrollView and CATiledLayer
- ios5: drawRect called twice in CATiledLayer for the same Rect
- crash bug because of using CATiledLayer and Core Data on iOS5
- CATiledlayer setContents nil give me a crash
- CATiledLayer blanking tiles before drawing contents
- How to cache CGContextRef
- Create tiled images for CATiledLayer
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Apple has a project called PhotoScroller. It supports panning and zooming of large images. However, it does this by pre-tiling the images - if you look in the project you will see hundreds of tiles for various zoom sizes. The project however does NOT come with any kind of tiling utility.
So what some people have done is create algorithms or code that anyone can use to create these tiles. I support an open source project PhotoScrollerNetwork that allows people to download huge jpegs from the network, tile them, then display them as PhotoScroller does, and while doing research for this I found several people who had posted tiling software.
I googled "PhotoScroller tiling utility" and got lots of hits, including one here on SO