This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
RunasSudo-AWOLindefinitely's profile picture

PNGNFP - The ComputerCraft Image Converter

Started by RunasSudo-AWOLindefinitely, 22 January 2013 - 09:38 PM
RunasSudo-AWOLindefinitely #1
Posted 22 January 2013 - 10:38 PM
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
Spoilerv0.1b2
  • Removed unnecessary "c" option.
  • Added Delta E (CIE94) colour matching algorithm.
  • Removed Tux.png from zip distribution.
v0.1b1
  • Initial release
Edited on 23 January 2013 - 02:20 PM
superaxander #2
Posted 23 January 2013 - 01:36 AM
Thanks alot
RunasSudo-AWOLindefinitely #3
Posted 23 January 2013 - 03:19 PM
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
Dlcruz129 #4
Posted 24 January 2013 - 04:18 AM
Looks great!
NeverCast #5
Posted 01 February 2013 - 09:47 AM
Very cool! I think I have a use for this!
ETHANATOR360 #6
Posted 23 February 2013 - 10:10 AM
could you post some before and after screenshots please
Mandrake Fernflower #7
Posted 01 May 2013 - 05:40 PM
It would be nice to have a small gui launcher for this tool… running jars in command line is messy!
zacpier #8
Posted 17 July 2013 - 11:10 PM
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.
NOTUSEDPLEASEDELETE #9
Posted 23 August 2013 - 09:17 PM
You might want to add export to CCPNG.