> 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

Signature
http://uio.imagero.com Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities
...
> 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.
Oliver Wong - 11 Sep 2006 19:02 GMT
> ...
>> Is there any java libraries around on the net that enables me to
[quoted text clipped - 5 lines]
>
> * 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_%28image_processing%29
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
ahjiang@gmail.com - 18 Sep 2006 03:42 GMT
i have seen
http://www.lcdf.org/gifsicle/
this is able to compress the animated gif to even smaller size, but it
is written in c..is there any implementation of it in java?
Oliver Wong - 18 Sep 2006 14:51 GMT
>i have seen
>
> http://www.lcdf.org/gifsicle/
>
> this is able to compress the animated gif to even smaller size, but it
> is written in c..is there any implementation of it in java?
Did you e-mail the author asking?
- Oliver