更大的图像文件质量更好的缩略图 [英] better quality thumbnails from larger image files

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

问题描述

我将其他网站的图片显示为缩略图。要做到这一点,我把它们显示在一个较小的img标签,所以浏览器的大小减少。



问题是这些图像的质量(我无法控制)减少了。
在FF和Safari浏览器中,它们看起来要好于IE。



有没有办法让这些图片在我的服务器上缓存起来呢? (例如,一个JavaScript库,质量更好的调整大小)? IE浏览器的默认图片大小调整算法不是很好 - 它可以通过调整注册表项来改变,但当然这是你无法控制的。



然而,显然它也可以被触发,以通过css来做一个更好的图像调整大小

  img {-ms-interpolation-mode:bicubic; } 

来源: http://edmondcho.com/blog/2009/03/17/internet-explorer-image-resizing-tip/


I'm showing images from other websites as thumbnails. To do this I display them in a smaller img tag so the browser does the size decrease.

The problem is that the quality of these images (which I have no control of) is diminished. Also they look much better in FF and Safari than in IE.

Is there a way to make these images look better without caching them on my server? (e.g a javascript library that does the resize with better quality)? Any idea is highly appreciated.

解决方案

IE's default image resizing algorithm is not that nice - it can be changed by tweaking a registry entry, but of course that is outside of your control.

However, apparently it can also be triggered to do a better image resize through css

img { -ms-interpolation-mode: bicubic; }

source: http://edmondcho.com/blog/2009/03/17/internet-explorer-image-resizing-tip/

这篇关于更大的图像文件质量更好的缩略图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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