Hi-res PNG file in ipad's safari

痞子三分冷 提交于 2019-12-21 04:33:07

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/6263937/hi-res-png-file-in-ipads-safari

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!