Giter Site home page Giter Site logo

zxy1994 / jdk9-png-writer-backport Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gredler/jdk9-png-writer-backport

0.0 0.0 0.0 78 KB

A backport of the PNG writer improvements available in JDK9

License: GNU General Public License v2.0

Java 100.00%

jdk9-png-writer-backport's Introduction

JDK9 PNG Writer Backport License Maven Central

This is a backport of the standard ImageIO PNG writer available in Java 9, which includes a very important configurability and performance enhancement. This library can be used on both Java 7 and Java 8.

Prior to Java 9, the ZLIB deflater used internally by PNGImageWriter always used the BEST_COMPRESSION compression level, which tries to achieve optimal file sizes regardless of the performance penalty. This behavior was not configurable.

In Java 9, the ZLIB deflater used by PNGImageWriter uses a more sane compression level default (4), and allows the compression level to be customized with the standard ImageWriteParam compression attributes.

This library contains and automatically registers this improved PNG writer with the ImageIO system, directing the ImageIO service registry to prioritize it over the built-in standard PNG writer.

Many thanks to Laurent Bourgès for implementing this Java 9 enhancement to begin with.

###Building

gradlew check: Compiles and runs all quality checks, including the unit tests.
gradlew jar: Builds the JAR file.
gradlew uploadArchives: Deploys to Maven Central (requires a modified gradle.properties file).

jdk9-png-writer-backport's People

Contributors

gredler avatar

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.