如何处理magento的图像质量? [英] How to deal with image quality in magento?

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

问题描述

我注意到在我的网站上有很多图像被过度优化并且有模糊(边缘模糊)。它们看起来非常糟糕。

I've noticed that on my website Many of the images are overoptimized and have artifacting (blurry edges). They look really bad.

所以我一直在研究magento(1.6)如何处理这些转换,但我不知道id是什么。

So i've been looking into what how magento (1.6) handles those conversions but I don't know id it does.

所以你可以看一看这个想法: HERE

So you can give a look here to get an idea: HERE

这取决于您的显示器。从很明显这些事情中脱颖而出的意义来说,我的好(坏)。其他显示器更宽容。所以我想弄清楚如何在不牺牲大文件带宽的情况下实现更高质量的压缩比。

It depends on your monitor. Mine is good (bad) in the sense that these things stand out pretty clearly. Other monitors are more forgiving. So I'm looking to figure out how to do a higher quality compression ratio without sacrificing too much bandwidth with big files.

这可能吗?它托管在亚马逊网络服务上。

Is that possible ? Its hosted on Amazon Web Services.

谢谢

推荐答案

一种方法名为 setQuality 已经实施,可直接在模板中使用。

A method called setQuality has been implemented and can be used directly in templates.

例如:

echo $ this-> helper('catalog / image') - > init($ this-> getProduct(),'image',$ _image- > getFile()) - >调整大小(42,50) - > setQuality(95);

这篇关于如何处理magento的图像质量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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