Search code examples
javalinuxtomcatcompressiongraphicsmagick

Image compression software


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.


Solution

  • 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.