[英]full page background image size recommendations
I am going to have a friend create a full page background image for a website I am creating, but I wanted to know what specs I would need to provide him with. 我将要一个朋友为我要创建的网站创建整页背景图像,但我想知道我需要为他提供哪些规格。 What is the best image quality that you guys recommend for a page to not be slowed down too much. 你们建议不要让页面速度变慢的最佳图像质量是什么。 Any minimum/maximum recommendations? 任何最低/最高建议? What format should the background image be created in? 应该以什么格式创建背景图像? Should the image be square(1 to 1) instead of rectangle(1 to 2, 2 to 1, 1 to 3, etc)? 图像应该是正方形(1到1)而不是矩形(1到2、2到1、1到3等)吗? Any other advice? 还有其他建议吗?
Assuming the background image would not be very "detail intensive", you should focus more on image quality setting, as you can shave quite a bit off the file size without any noticeable quality loss. 假设背景图像不是很“细节密集”,则应更加关注图像质量设置,因为可以在不明显损失质量的情况下将文件大小削减很多。 Also, I would recommend a jpeg for such a task, as it usually has a smaller file size than png at bigger resolutions. 另外,我建议为此类任务使用jpeg,因为在较大分辨率下,文件大小通常比png小。
To choose your resolution, you should try to check Google Analytics for a website that targets the same users as yours and see what's the usual resolution for most people. 要选择分辨率,您应该尝试在Google Analytics(分析)中查找一个针对与您相同的用户的网站,并查看大多数人通常使用的分辨率。 Say 90% of users have 1024x768 or lower, than you can aim for that size. 假设有90%的用户使用1024x768或更小尺寸,而不是您希望的最大尺寸。 Keep in mind that as displays get bigger, people stop using their browser full screen, so if you see visitors with 2560x1440, that doesn't mean their browser runs at that resolution. 请记住,随着显示尺寸的扩大,人们会停止使用全屏浏览器,因此,如果您看到的浏览器的分辨率为2560x1440,这并不意味着他们的浏览器会以这种分辨率运行。 In any case, for the 10% left in that demographic, upscaling the image should be a good compromise. 无论如何,对于该人口统计中剩余的10%,放大图像应该是一个不错的选择。
Regarding the ratio, I think 1:1 is pointless if you target desktop users, but useful for mobile, because you can always have a portrait orientation for the viewport. 关于比例,我认为如果以桌面用户为目标,则1:1是没有意义的,但对于移动设备却很有用,因为您始终可以将视口设置为纵向。 Again, this depends on your target audience. 同样,这取决于您的目标受众。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.