Compressing Animated GIF

T

Tom

Hi all,

Is there any java libraries around on the net that enables me to
compress animated gif into a smaller file size?

Appreciate any advice.
 
A

Andrey Kuznetsov

Is there any java libraries around on the net that enables me to
compress animated gif into a smaller file size?

you may try Gif4J, however Gif4J PRO is expensive.

Andrey
 
A

Andrew Thompson

Tom wrote:
....
Is there any java libraries around on the net that enables me to
compress animated gif into a smaller file size?

Sure! Kevin Wiener's Animated GIF De/Encoder
library can allow you to set the quantisation level
of the colors* which affects file size/quality.

* I am not exactly sure what that means, beyond using it.

I tied Kevin's open-source library into The Giffer..
which you can install here
<http://www.physci.org/giffer/giffer.jnlp>
The Color Quantization Quality slider is on
the top right, and hopefully the rest should
be self explanatory.

It is free, but comes with 'no guarantees'.

HTH

Andrew T.
 
O

Oliver Wong

Andrew Thompson said:
Tom wrote:
...

Sure! Kevin Wiener's Animated GIF De/Encoder
library can allow you to set the quantisation level
of the colors* which affects file size/quality.

* I am not exactly sure what that means, beyond using it.

For the curious:

http://en.wikipedia.org/wiki/Color_quantization
http://en.wikipedia.org/wiki/Quantization_(image_processing)

A(n) (over-)simplification might be "reduces the number of colours
present in an image".

Since GIF uses a run-length encoding compression scheme, the fewer
colours there are in the image, the greater the chance that two adjacent
pixels will have identical colour, which will yield better compression.

If the goal is small GIFs, make sure to *NOT* select "dithering" as the
method for quantization.
http://en.wikipedia.org/wiki/Dither

- Oliver
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top