我们可以提供@ 2x图片吗? [英] Can we just provide @2x images?

查看:197
本文介绍了我们可以提供@ 2x图片吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们知道我们应该为iphone / ipad应用提供正常大小的图片和@ 2x尺寸的图片。
但是为一个图像提供双倍大小是一件无聊的事情。

We know that we should provide normal size image and @2x size image for a iphone/ipad app. But providing double size for one image is a boring thing.

我做了一些测试,如果只有@ 2x图像,系统将自动将@ 2x图像缩小为正常大小。所以在这种情况下,无视网膜iphone / ipad不会看起来怪异。

I've do some test, if there is only the @2x image, if needed, system will automatically shrink the @2x image to normal size. So in this situation, the none retina iphone/ipad won't look weird.

我想知道我们可以提供@ 2x图像,让系统收缩较小的?是苹果允许的吗?

I'm wondering can we just provide @2x images and let system shrink them to get smaller ones ? And is it allowed by apple?

感谢。

编辑

我意识到这将导致旧设备上的内存问题。

I've realized it will cause memory issue on old device.

再次感谢。

推荐答案

苹果说你必须提供两者。在猜测在什么情况下可以接受或不是我们可以花费几天 - 最后它就像读卡,和一些随机苹果的家伙将决定他如何解释的指导方针。

Apple says you have to provide both. On guessing under what circumstance it is acceptable or not we can spent days — at the end it is like reading the cards, and some random Apple guy will decide on how he interpreted the guidelines.

如果手动缩小图片的任务对您来说太无聊了,为什么不创建一个工具/脚本自动为您自动完成。

If the task of shrinking the images manually is too boring for you, why don't you create a tool/script to do it automatically for you.

编辑

您的声明,即没有使用量的增加不能为true。图像数据作为原始数据存储在存储器中。每个像素高达四个字节。 Retina版本图片必须使用大约4倍的内存。

edit
Your statement, that there is no increase of usage can't be true. The image data is stored in memory as raw data. with up to four bytes per pixel. Retina version images must use about 4 time more memory.

这篇关于我们可以提供@ 2x图片吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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