I'm Roberto Tyley, Prinicipal Engineer for Journalism Tools at the Guardian, and also:
- π Expert on Git version-control history remediation
A re-package of the Animated GIF processing classes made available by Kevin Weiner at http://www.fmsware.com/stuff/gif.html
I'm Roberto Tyley, Prinicipal Engineer for Journalism Tools at the Guardian, and also:
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);
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?
Thank you very much for providing this toolο½
If image path contains uppercase characters, a FileNotFoundException will occur. For example: c://TEST.png -> c://test.png
. If the file path requires lowercase, make sure it is in the necessary location
Both the README
and the project description contain a link to http://www.fmsware.com/stuff/gif.html
, a site which is now owned by a SEO company. The website displays pages filled with garbage.
I suggest replacing any occurrence of http://www.fmsware.com/stuff/gif.html
by http://www.java2s.com/Code/Java/2D-Graphics-GUI/AnimatedGifEncoder.htm which is more informative. In fact, any page that does not feed the SEO troll would be preferable.
The generated GIF file is too large to be compressed? Or can you only make the source file smaller? If you can, can you guide me?
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>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.