如果文件大小不减少,并且图像质量受损,为什么要在Coldfusion中调整图像大小? [英] Why should I resize an image in Coldfusion if the file size doen't decrease and the quality of the image suffers?

查看:138
本文介绍了如果文件大小不减少,并且图像质量受损,为什么要在Coldfusion中调整图像大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道:
我试图设置一个自适应图像处理程序在Coldfusion8,它调整图像的较小的屏幕尺寸。



我有它的工作正常,我正在玩不同的resize选项找到此处



我注意到的是,无论使用什么方法,他们都需要时间,降低图像质量,而不是真正减少图像大小,所以例如:

  IMG 1 IMG 2 
原创23K 900x360px 53K 900x360px
Blackman 22k 320x128px 52K 320x128px
highPerformance 21K 320x128px 32K 320x128px
最近25K38K

这个想法是调整较小显示器的图像大小。现在我不是真的减少任何东西,我只是绘制处理器调整大小和输出模糊的图像和相同的文件大小。



问题: / strong>

为什么要调整大小?我可能会发送原始文件@ 900x360px @ 23K。至少那个图像将与320x1280像素的一个调整大小的模糊图像是锋利的。有没有办法在Coldfusion中调整图像大小的文件大小和/或图像质量?



感谢您的输入!Cldfu


要以更好的文件大小进行压缩,请使用质量属性(默认为0.75)设置JPEG压缩质量



a href =http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7945.html =nofollow> http://help.adobe.com/en_US/ColdFusion/9.0/ CFMLRef / WSc3ff6d0ea77859461172e0811cbec22c24-7945.html



如果cfimage不能满足您的需求,请使用 imagemagick


Just wondering: I'm trying to set up an adaptive image handler in Coldfusion8, which resizes images for smaller screensizes.

I have it working allright and am currently playing around with the different resize options found here

What I notice is no matter what method I'm using, they all take time, reduce the image quality and not really reduce the image size, so for example:

                         IMG 1                     IMG 2
Original             23K 900x360px             53K 900x360px
Blackman             22k 320x128px             52K 320x128px
highPerformance      21K 320x128px             32K 320x128px 
nearest              25K    "                  38K    "         

The idea was to resize images for smaller displays. Right now I'm not really reducing anything, I'm only drainging the processor for resizing and output blurry images and the same file size.

Question:
Why should I bother resizing then? I might as well send the original file which @900x360px @23K. At least that images will be sharp vs. a resized blurry image with 320x1280px. Is there a way to make resizing images in Coldfusion worthwhile in terms of file size and/or image quality?

Thanks for inputs!Cldfu

解决方案

I think what you fiddle with are quality/speed of the resize algorithm, not compression.

To compress with better file size, set the JPEG compression quality using the quality attribute (default to 0.75)

http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7945.html

If cfimage doesn't satisfy your needs, use imagemagick

这篇关于如果文件大小不减少,并且图像质量受损,为什么要在Coldfusion中调整图像大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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