0

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.

toc777
  • 2,607
  • 2
  • 26
  • 37
  • 1
    Aren't a lot of major image formats already compressed? What are you trying to do, exactly? – Carl Norum Nov 08 '10 at 17:56
  • Hi Carl, I'm trying to really shrink the size of the image beyond its normal compression. I don't care about loss of quality. I'm planning for the image to be half the quality of the original. – toc777 Nov 08 '10 at 23:30

3 Answers3

1

They're separate programs, but I recommend:

pngcrush and jpegtran

Gregg B
  • 13,139
  • 6
  • 34
  • 50
1

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.

Community
  • 1
  • 1
DaGGeRRz
  • 1,611
  • 1
  • 12
  • 13
0

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.

toc777
  • 2,607
  • 2
  • 26
  • 37