Giter Club home page Giter Club logo

animated-gif-lib-for-java's Introduction

Animated GIF library for Java

This code is a re-package of the Animated GIF processing classes made available by Kevin Weiner at http://www.fmsware.com/stuff/gif.html, which states that the code "may be freely used for any purpose. Unisys patent restrictions may apply to the LZW portions.".

You may find the following link relevant in determining the current extent of the Unisys patent restrictions:

http://en.wikipedia.org/wiki/Graphics_Interchange_Format#Unisys_and_LZW_patent_enforcement

The classes are largely unaltered, though as the code was originally placed in the 'default' package, I've assigned the Java package name of com.madgag.gif.fmsware.

This repo is intended mainly for packaging those classes into a maven-friendly format - for full attribution of the original code, check the Java file headers.

Where alterations have occurred since the initial import, those changes are licenced under the Apache V2 licence.

animated-gif-lib-for-java's People

Contributors

carlosame avatar junquero avatar rtyley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

animated-gif-lib-for-java's Issues

generated gif size

Is there any way to compress the generated gif, it is much bigger than the original images size(I mean the file size instead of image resolution/size), almost 10 times bigger, any optimized solution?

Set an automatic module name in the Jar MANIFEST

To use this project in JPMS modular builds, an automatic module name would be helpful; see the following blog post for context:

http://branchandbound.net/blog/java/2017/12/automatic-module-name/

The idea would be to add the following to the pom.xml, inside the build/plugins section:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-jar-plugin</artifactId>
  <version>3.2.0</version>
  <configuration>
    <archive>
      <manifestEntries>
        <Automatic-Module-Name>com.madgag.gif.fmsware</Automatic-Module-Name>
      </manifestEntries>
    </archive>
  </configuration>
</plugin>

Why a gif going through decode and encode will drop quality and size

I was trying to test decode and encode a gif and compare with original input file, I found the size drops and quality drops. is encode a lossy process? Or I miss something? below is my encode code

encoder.setRepeat(0);
      encoder.setDelay(decoder.delay);
      encoder.setDispose(decoder.dispose);
      encoder.setQuality(1);
      encoder.setSize(decoder.width, decoder.height);
      for (int i = 0; i < decoder.getFrameCount(); i ++) {
        encoder.addFrame(decoder.getFrame(i));
      }

      encoder.finish();
      assertEncodedImageIsEqualTo(gif);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.