←  APIs and Utilities

ComputerCraft | Programmable Computers for Minecraft

»

PNGNFP - The ComputerCraft Image Converter

RunasSudo-AWOLindefinitely's Photo RunasSudo-AWOLindefinitely 22 Jan 2013

PNGNFP

...is a simple command-line program (written in Java) designed to convert image files to NFP (the "standard" ComputerCraft image format). Despite it's name, it should be capable of converting from any image format natively supported by Java - even... JPEG... *shudder*.

Downloads
v0.1b2: Dropbox
v0.1b1: Dropbox

Installation
Seeing as this is a command-line program, I'm going to assume you know how to unzip files and stuff.

Usage (v0.1b2 and up)
For detailed usage instructions, run
java -jar PNGNFP.jar --help

For reference, to perform a pixel-for-pixel conversion, run
java -jar PNGNFP.jar nf Tux.nfp Tux.png
If you don't want a ridiculously large image, run
java -jar PNGNFP.jar snf 12 18 Tux.nfp Tux.png
If you want to test drive the new CIE94 colour matching algorithm (still in "beta"), run
java -jar PNGNFP.jar sdnf 12 18 Tux.nfp Tux.png
All of the above commands will convert Tux.png to Tux.nfp.

Changelog
Spoiler

Edited by RunasSudo, 23 January 2013 - 03:20 PM.
Quote

superaxander's Photo superaxander 23 Jan 2013

Thanks alot
Quote

RunasSudo-AWOLindefinitely's Photo RunasSudo-AWOLindefinitely 23 Jan 2013

Just released v0.1b2.
Removes the unnecessary "c" option and adds a new "d" option to use the new (still in testing and kinda glitchy for some reason I can't figure out) Delta E (CIE94) colour matching algorithm (for more "accurate" colour matching).

Download in main post or at http://bit.ly/V5ENA9
Quote

Dlcruz129's Photo Dlcruz129 24 Jan 2013

Looks great!
Quote

NeverCast's Photo NeverCast 01 Feb 2013

Very cool! I think I have a use for this!
Quote

ETHANATOR360's Photo ETHANATOR360 23 Feb 2013

could you post some before and after screenshots please
Quote

Mandrake Fernflower's Photo Mandrake Fernflower 01 May 2013

It would be nice to have a small gui launcher for this tool... running jars in command line is messy!
Quote

zacpier's Photo zacpier 17 Jul 2013

If you don't like the "messyness" of running the jar, you can use this. http://db.tt/XnY4Y6Je
It's a batch file I made which I put into the "computer" folder of my save. To use it, just drag the image to convertImage.bat.

BTW If you don't put it in "computer," then don't use the computer ID part, leave it blank.
Quote

NOTUSEDPLEASEDELETE's Photo NOTUSEDPLEASEDELETE 23 Aug 2013

You might want to add export to CCPNG.
Quote