Skip to content

A Java ImageIO plugin for Portable Any Map (pgm, ppm and pbm)

License

Notifications You must be signed in to change notification settings

eug/imageio-pnm

Repository files navigation

imageio-pnm

A Java ImageIO plugin for the Portable Any Map image format. This project implements read/write support using ImageIO framework for all Portable Any Map formats (pgm, ppm, pbm and pnm).

Usage

For sake of simplification, to register all plugins to ImageIO framework, just call the method PNMRegistry.registerAllServicesProviders() . For a better understanding how to use this library, take a look at samples/PNMViewer.java. A simple way to use is:

PNMRegistry.registerAllServicesProviders();
final BufferedImage bi = ImageIO.read("image.pgm");
ImageIO.write(bi, "pgm", new File("image_2.pgm"));

Build

Just mvn install!

License

MIT

Releases

No releases published

Packages

No packages published

Languages