Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hi-res PNG file in ipad's safari

Tags:

png

safari

ipad

I have some asp.net site that shows png images that converted from hi-res tiff files. The image is shown via simple img tag. The problem is that wneh png has a big resolution - it does not shown properly in ipad's safari browser, but the most of png files are ok. What it can be? Thank you

like image 763
nKognito Avatar asked Jun 07 '11 10:06

nKognito


Video Answer


1 Answers

The iPad cannot display images with a w*h larger than 3*1024*1024 (3145728)

So if your image is 2048x2048 then w*h = 4194304 which is larger than 3145728.

Source: https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariWebContent/CreatingContentforSafarioniPhone/CreatingContentforSafarioniPhone.html#//apple_ref/doc/uid/TP40006482-SW15

like image 81
betamax Avatar answered Oct 20 '22 07:10

betamax