File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Converting to an Animated GIF or something similar

 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, please have a look at the following code (This is a test code, that's why you can see just a one class with a subclass and a simple GUI )



Now, what I need is, when the user click on the "Create" button, the generated output slideshow, should be saved in the user's computer as an Animated GIF or SWF or something that which can show the animated images when doubled clicked, or opened in web browser (Like animated GIF). I ahve no idea about how to do this. Please help me to achieve my task.. Thanks
 
Darryl Burke
Bartender
Posts: 5115
11
Java Netbeans IDE Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Searching the net for "java save animated gif" gave a few million results, and at least some of the first-page results were accompanied by code.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that GIF is an 8-bit format, so any conversion from JPEG to GIF will almost certainly result in a loss of quality. It will also present the non-trivial problem of which colors to use in the resulting GIF.
 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Darryl Burke wrote:Searching the net for "java save animated gif" gave a few million results, and at least some of the first-page results were accompanied by code.


Thanks for the info. Yes, I saw some of them. Will check and be back...
 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Note that GIF is an 8-bit format, so any conversion from JPEG to GIF will almost certainly result in a loss of quality. It will also present the non-trivial problem of which colors to use in the resulting GIF.


Thanks for the info. I will definitely keep this in my mind when I am actually doing the project...
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic