toc777
toc777

Reputation: 2697

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.

Upvotes: 0

Views: 560

Answers (3)

toc777
toc777

Reputation: 2697

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.

Upvotes: 0

DaGGeRRz
DaGGeRRz

Reputation: 1611

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.

Upvotes: 1

Gregg B
Gregg B

Reputation: 13717

They're separate programs, but I recommend:

pngcrush and jpegtran

Upvotes: 1

Related Questions