PNGNFP - The ComputerCraft Image Converter
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.pngIf you don't want a ridiculously large image, run
java -jar PNGNFP.jar snf 12 18 Tux.nfp Tux.pngIf 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.pngAll of the above commands will convert Tux.png to Tux.nfp.
Changelog
Spoiler
Edited by RunasSudo, 23 January 2013 - 03:20 PM.
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
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
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!
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.
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.