iOS浏览器在没有下采样的情况下显示的最大图像大小是多少? [英] What's the largest image size that the iOS browser display without downsampling?

查看:164
本文介绍了iOS浏览器在没有下采样的情况下显示的最大图像大小是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

标题是什么;基本上,如果您在iOS浏览器(例如iPhone)中显示图像,当图像尺寸超过某个限制时,图像将被缩减采样并以原始分辨率的一小部分显示(即 1 / n 原始像素数。)

What the title says; basically, if you display an image in the iOS browser (say, the iPhone), when the image dimensions surpass a certain limit, the image is downsampled and displayed at a fraction of the original resolution (ie. 1/n the number of pixels of the original).

我猜,这是一种避免在图像时崩溃浏览器的方法由于内存不足,尺寸变得太大。

This is, I'm guessing, a way to avoid crashing the browser when image sizes become too large due to running out of memory.

我的问题是,在WebView(或浏览器)每次开始采样之前,图像尺寸的上限是多少第n个像素?

My question is, what is the upper limit to the image dimensions before WebView (or the browser) starts sampling every n-th pixel?

示例:当显示5760×1800图像时,它会被下采样到1440×450在浏览器中(1:4的比例)。

EXAMPLE: When displaying a 5760×1800 image, it is downsampled into 1440×450 in the browser (a 1:4 ratio).

推荐答案

刚刚完成了一些测试,似乎iOS(在iPhone 3GS上)至少使用iOS 4.2.1)当图像达到 1024px 限制时对图像进行下采样。任何超过此尺寸的图像都会按每个 n 像素对像素进行采样,其中 n 是产生尺寸< = 1024px的最小除数。

Just finished a few tests and it seems that iOS (on iPhone 3GS with iOS 4.2.1 at least) downsamples the image when it hits the 1024px limit. Any image above this size has its pixels sampled by every n-th pixel, where n is the smallest divisor that yields a dimension <= 1024px.

这篇关于iOS浏览器在没有下采样的情况下显示的最大图像大小是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆