Skip to content

🖼️ PNG Java ImageIO SPI

Notifications You must be signed in to change notification settings

umjammer/javapng-spi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Release Java CI CodeQL Parent

javapng-spi

mavenized and spi-nised javapng


Original

Copyright (C) 1998-2008 Chris Nokleberg All rights reserved.

README - Sixlegs Java PNG Decoder

Features

Supports all valid bit depths (grayscale/color), interlacing, paletted images, alpha channel/transparency, gamma correction, access to all standard chunks, private chunk handling, and progressive display.

Getting Started

After including the javapng jar file in your classpath, typical usage is as follows:

create a new instance of PngImage

com.sixlegs.png.PngImage png = new com.sixlegs.png.PngImage();

decode a PNG file into a BufferedImage using the read method

java.awt.image.BufferedImage image =
png.read(new java.io.File("test.png"));

the PngImage object will now provide access to the metadata

int colorType = png.getColorType();

Revision History

See http://code.google.com/p/javapng/wiki/ChangeLog

Contact Information

The latest version of this package is available from: http://code.google.com/p/javapng/

Please let me know about any problems you encounter, or features that you would find valuable.

Chris Nokleberg chris@sixlegs.com