Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm developing a website which contains, by its nature, very large images. When testing on an iPad, I'm noticing that any image on the page larger than 2MB is not showing up, just showing the dreaded blue '?' instead. The only reason I can think of is that there is some sort of built-in resource size limit.

I've tried Googling, but there doesn't appear to be any published limit, and the only reports I've found mention 6.5MB... but I'm way below that.

Does anyone have any concrete sources that indicate if this limit exists, and what it may be?

share|improve this question
add comment

1 Answer

up vote 9 down vote accepted

This official article what you are looking for. As expected there is no file size limit, the answer is more complex and depends on the device memory and image compression algorithm used:

  • The maximum size for decoded GIF, PNG, and TIFF images is 3 megapixels for devices with less than 256 MB RAM and 5 megapixels for devices with greater or equal than 256 MB RAM. That is, ensure that width * height ≤ 3 * 1024 * 1024 for devices with less than 256 MB RAM. Note that the decoded size is far larger than the encoded size of an image.

  • The maximum decoded image size for JPEG is 32 megapixels using subsampling. JPEG images can be up to 32 megapixels due to subsampling, which allows JPEG images to decode to a size that has one sixteenth the number of pixels. JPEG images larger than 2 megapixels are subsampled—that is, decoded to a reduced size. JPEG subsampling allows the user to view images from the latest digital cameras.

  • The maximum size for a canvas element is 3 megapixels for devices with less than 256 MB RAM and 5 megapixels for devices with greater or equal than 256 MB RAM.

share|improve this answer
    
Wow, you fully deserve a necromancer badge for this answer, my question is nearly a year old :) Thanks a lot! –  Adrian Petrescu Mar 25 '12 at 20:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.