图像压缩软件
我需要一个在 Linux 中运行的图像压缩程序,能够压缩所有主要图像格式。我的 tomcat Web 服务器需要它,所以如果它是一个 Java 实现,那就太好了(我知道,不太可能)。我环顾四周,只遇到了 GraphicsMagick/ImageMagick(它们非常出色),但都是用 C 编写的,我只需要一个可以进行压缩的应用程序,因此它们的功能丰富,可以满足我的需求。
感谢您的帮助。
I need an image compression program that works in Linux that is capable of compressing all the major image formats. I need it for my tomcat webserver so if it was a Java implementation, that would be great (I know, not likely). I have looked around and only came across GraphicsMagick/ImageMagick (which are excellent) but are written in C and I only need an application that does compression so they are a bit feature rich for my needs.
Thanks for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
它们是单独的程序,但我建议:
pngcrush
和
jpegtran
They're separate programs, but I recommend:
pngcrush
and
jpegtran
Java JRE 支持对大多数常见格式的图像进行编码/解码,无需外部程序。
有关示例,请参阅使用 Java ImageIO 的 Tiff 压缩。
The Java JRE has support for encoding / decoding images to and from most common formats and no external programs should be necessary.
See Tiff compression using Java ImageIO for an example.
最后我决定将 im4java 与 GraphicsMagick 一起使用。 im4java 是用于执行 image/graphicsMagick 命令的命令行的 Java 包装器。 GraphicsMagick 能够减小所有主要图像格式的文件大小。到目前为止,这种组合效果非常好。
In the end I decided to use im4java with GraphicsMagick. im4java is a Java wrapper around the command line for executing image/graphicsMagick commands. GraphicsMagick is capable of reducing the file size of all the major image formats. This combination has worked quite well so far.