Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

Compressing Animated GIF

Thread view: 
Tom - 11 Sep 2006 05:20 GMT
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.
Andrey Kuznetsov - 11 Sep 2006 06:37 GMT
> 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

Andrew Thompson - 11 Sep 2006 08:14 GMT
...
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.