【发布时间】:2017-01-22 01:23:13
【问题描述】:
当我使用 Google PageSpeed 时,我被告知我需要压缩我的图片。示例:
Compressing https://xxx.s3.amazonaws.com/xxxx.jpg could save 33.2KiB (66% reduction).
我不确定如何让 Google 满意。在 Carrierwave 中,我有以下设置:
version :thumb do
process resize_to_fill: [340, 260]
process :quality => 86
end
如果我将处理质量改为 86 以外的任何值,图像看起来就不那么好了。我是否缺少其他一些设置/技巧来压缩图像以使 Google PageSpeed 满意并帮助我的网站快速加载?
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-4 carrierwave pagespeed