• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Resize a Animated GIF file in Java

 
Greenhorn
Posts: 5
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,

Is it possible to resize a Animated GIF in Java , without losing its Animation ? I tried various options and API's like Jmagic, still after Resize after re-sizing the animation is gone!

 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The ImageJ library can be used to do that, although I couldn't tell you the exact order of steps. Probably opening the GIF as a stack of images, then resizing the stack (or possibly all images of the stack individually, I'm not sure), and then saving the stack as an animated GIF.

If you want to go that route, start by figuring out how to perform these steps manually in the ImageJ application, then it should be clearer how to do it programmatically.
 
reply
    Bookmark Topic Watch Topic
  • New Topic