Jump to content




PNGNFP - The ComputerCraft Image Converter

utility java media

8 replies to this topic

#1 RunasSudo-AWOLindefinitely

  • Signature Abuser
  • 249 posts
  • Location/dev/earth1aus5

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
Spoiler

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


#2 superaxander

  • Members
  • 609 posts
  • LocationHolland

Posted 23 January 2013 - 01:36 AM

Thanks alot

#3 RunasSudo-AWOLindefinitely

  • Signature Abuser
  • 249 posts
  • Location/dev/earth1aus5

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

#4 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 24 January 2013 - 04:18 AM

Looks great!

#5 NeverCast

  • Members
  • 400 posts
  • LocationChristchurch, New Zealand

Posted 01 February 2013 - 09:47 AM

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

#6 ETHANATOR360

  • Members
  • 423 posts
  • Locationyour hardrive

Posted 23 February 2013 - 10:10 AM

could you post some before and after screenshots please

#7 Mandrake Fernflower

  • Members
  • 117 posts
  • LocationDark Side of The Moon

Posted 01 May 2013 - 04:40 PM

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

#8 zacpier

  • Members
  • 44 posts
  • LocationUS

Posted 17 July 2013 - 10: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.

#9 NOTUSEDPLEASEDELETE

  • Members
  • 70 posts

Posted 23 August 2013 - 08:17 PM

You might want to add export to CCPNG.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users