巴COM pression和图像调整 [英] Png compression and image resizing

查看:134
本文介绍了巴COM pression和图像调整的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法/插件,帮助图像缩放与PNG COM pression?

Is there a way / plugin to help the image resizer with png compression?

我有我的导航使用,并想保持尽可能小PNG图像。原始图像的宽度200像素和大小38KB。我需要调整它下降到150像素。有一次,我一定要使用图像缩放尺寸上升到150KB。

I have a png image that I use in navigation and would like to keep it as small as possible. The original image has width 200px and size 38kb. I need to resize it down to 150px. Once I do so using the image resizer the size goes up to 150kb.

最初的形象是COM pressed使用 http://tinypng.org/

Originally the image was compressed using http://tinypng.org/

推荐答案

使用&放大器;颜色= 256 &放大器;颜色= 128 等调整位深度。您也可以preserve现有的调色板与 preservePalette = TRUE

Yes, the PrettyGifs plugin offers excellent octree quantization for both PNG and GIF images.

Use &colors=256, &colors=128, etc to adjust the bit depth. You can also preserve the existing color palette with preservePalette=true.

注意:高级PNG ​​COM pression优化(如提供的smush.it,tinypng等)需要的其他的150-400MB的RAM和需要10-20秒来执行 - 原因很明显,你不希望出现这种动态请求期间发生的。 ImageResizer尝试在250毫秒来完成每个请求。

Note that advanced PNG compression optimizations (such as offered by smush.it, tinypng, etc) require an additional 150-400MB of RAM and take 10-20 seconds to perform - for obvious reasons you wouldn't want that to happen during a dynamic request. ImageResizer tries to finish each request under 250ms.

手工优化的 PNG / GIF 的CSS sprites和站点范围内的图标通常会给你一个更小的文件大小ImageResizer可以,但它几乎是不可能被击败的拍摄数据。

Hand-optimizing PNG/GIF CSS sprites and site-wide icons is usually going to give you a smaller file size that ImageResizer can, although it's nearly impossible to beat for photographic data.

当然,安装了的WebP插件,ImageResizer将擦拭地板同业竞争。

Of course, with the WebP plugin installed, ImageResizer will wipe the floor with the competition.

这篇关于巴COM pression和图像调整的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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