Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片压缩的问题 #2

Open
xinyuanyu opened this issue May 12, 2014 · 1 comment
Open

图片压缩的问题 #2

xinyuanyu opened this issue May 12, 2014 · 1 comment

Comments

@xinyuanyu
Copy link

Hi Yongcheng,

我是Xinyuan, 关于Nimg我有一个问题想请教一下:

在zimg的文档里面(http://zimg.buaa.us/arch_design.html)里面,提到了这样一段话

除了路径规划,zimg另一大功能就是压缩图片。从用户角度来说,zimg返回来的图片只要看起来跟原图差不多就行了,如果确实需要原图,也可以通过将所有参数置空的方式来获得。基于这样的条件,zimg.c对于所有转换的图片都进行了压缩,压缩之后肉眼几乎无法分辨,但是体积将减少67.05%。具体的处理方式为:

图片裁剪时使用LanczosFilter滤镜;
以75%的压缩率进行压缩;
去除图片的Exif信息;
转换为JPEG格式。
经过这样的处理之后可以很大程度的减少流量,实现设计目标。

我想问一下,Nimg有这样的实现吗?

@freeman983
Copy link
Member

目前还没有做压缩处理。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants