iPad上的图像大小限制? [英] image size limit on iPad?

查看:192
本文介绍了iPad上的图像大小限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个Web应用程序,并注意到我的缩放功能不适用于某些图片,并且意识到适当地调整了某些图片的大小.查看以下示例(在iPad2上进行了测试):

I develop a web-app and noticed that my zoom function is not working for some pictures and realized that apprently some pictures are resized. Check out these examples (tested on iPad2):

http://zoom-test.magent-server.de/bild1.html ->以gif格式显示的图片以完整尺寸显示

http://zoom-test.magent-server.de/bild1.html -> picture in gif-format shown in full size

http://zoom-test.magent-server.de/bild2.html ->最初为jpg格式的jpg格式图片,但在iPad上已缩小

http://zoom-test.magent-server.de/bild2.html -> picture in jpg-format originally in the same size, but reduced on iPad

我不知道何时缩小图片.显然,使用gif不会发生这种情况,但不一定会使用jpg发生这种情况.它还不取决于图像大小或重新构造.我测试了比示例中尺寸更大和更大的图像,但是找不到图案.

I can't figure out when a picture is reduced. Apparently with gif it does not happen but also not always with jpg. It also does not depend on the image size or resoultion. I tested images with smaller and bigger sizes than those in the examples, but I couldn't find a pattern.

有什么方法可以防止图像尺寸缩小吗?或至少是一个定义,以便我知道哪些图片将被缩小,哪些图片将不被缩小.

Is there any way to prevent image size reduction? Or at least a defintion so I know which pictures will be reduced and which not.

推荐答案

要加载的图像大约有6.5 MB的限制(例如,如果页面上有20 MB)

There is a Limit of about 6,5 MB for a image to load (e.g. if you have 20 of them on a page) see here

但对于您而言,文件大小不是问题,您应该看看

but in your case, file size is not the problem, you should have a look at the apple docs where it says 'Know iOS Resource Limits'

这篇关于iPad上的图像大小限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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