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

[CCIC] ComputerCraft Image Converter

Started by Turtle, 22 October 2012 - 04:12 PM
Turtle #1
Posted 22 October 2012 - 06:12 PM
I just spent some time writing a little program that turns .NFPs/.CMGs to .PNG, .BMP, .GIF and .JPGs (And reverse, of course!)

Guide:
1) Click the "Open input directory" button, this will open windows explorer.
2) Drop the desired images/NFPs/CMGs in there
3) Close windows explorer
4) Click either From CC, if you are converting from NFPs/CMGs to other formats, or To CC if you are converting to NFPs/CMGs
5) Click "Open output directory" and take your images

NOTE:
This program uses the .cmg format for images in NFP format, this might cause dodgy file extensions if you named your files .nfp, this does NOT have ANY changes with the content, both .NFP and .CMG are identical.

Screenshots:
Spoiler[attachment=598:ss (2012-10-22 at 06.52.22).png]
On the right, the image before conversion, on the left, the huge NFP file

[attachment=597:ss (2012-10-22 at 06.51.37).png]
GUI screenshot.

FAQ:
SpoilerQ: Why did you link us to that image!?!:
A: Because most people do not read the FAQ, and litter the thread, with questions.

Q: Where is the download link?
A: Right here:
Executeable: http://tinyurl.com/8t22aek
Love2d file: http://tinyurl.com/9tsytrq

Q: The exectuteable download is a zip file!
A: The executeable is packaged with a couple .DLL files in the zip, unzip it, and DO NOT remove the .DLL files, and then just doubleclick the executeable.

Q: Can I trust this?, It is an executeable…
A: Sure!, and if you don't trust it, Download the love2d file, which is just the zipped source, so you can check everything you feel needs checking.

Q: What do I need to run the love2d file?
A: Well, You need the love2d engine, which can be found here: https://love2d.org/

Q: Mac/Ubuntu?
A: Download the love2d file, and love2d, which runs on mac. :)/>/>

Q: Why does it show the command promt when I open the directory?
A: This is the way how the Lua OS library works, it opens windows explorer via the command promt, it does nothing else, look at the source if you don't trust it.

DOWNLOADS: http://puu.sh/1hxDL


Legal note:
Do not copy any piece this work, Do not reupload it.
You are free to decompile to see how it works.

faubiguy #2
Posted 22 October 2012 - 06:15 PM
This is neat. Now I can edit my ComputerCraft images in a real image editor.
Cranium #3
Posted 22 October 2012 - 06:23 PM
This would go in the APIs/Utilities section, BTW. Oh, and to post images from other sites, you should be doing this:

[img]image url here[/img]
It all looks good though. Might have to try this.
Turtle #4
Posted 22 October 2012 - 06:26 PM
This would go in the APIs/Utilities section, BTW. Oh, and to post images from other sites, you should be doing this:

[img]image url here[/img]
It all looks good though. Might have to try this.

I thought so at first, but this isn't ComputerCraft executeable Lua, That's why it is here now, We'll hear from an admin soon.

And, Thanks for the image tip, But uhm, It failed… :S
Cranium #5
Posted 22 October 2012 - 06:32 PM
I thought so at first, but this isn't ComputerCraft executeable Lua, That's why it is here now, We'll hear from an admin soon.

And, Thanks for the image tip, But uhm, It failed… :S

What you have to do is use the HTML editor. Since you already posted a link. Just remove the links, and put this in there:

[img]http://puu.sh/1hxXA[/img] --screenshots
[img]http://puu.sh/1hxWA[/img] --gui
And there are several things in the API's/Utilities section that aren't lua executable. Such as CCemu, Minecopy, etc. There's a whole bunch of tools there. The admins will probably move this there anyway.
Turtle #6
Posted 22 October 2012 - 06:41 PM
I thought so at first, but this isn't ComputerCraft executeable Lua, That's why it is here now, We'll hear from an admin soon.

And, Thanks for the image tip, But uhm, It failed… :S
What you have to do is use the HTML editor. Since you already posted a link. Just remove the links, and put this in there:

[img]http://puu.sh/1hxXA[/img] --screenshots
[img]http://puu.sh/1hxWA[/img] --gui
And there are several things in the API's/Utilities section that aren't lua executable. Such as CCemu, Minecopy, etc. There's a whole bunch of tools there. The admins will probably move this there anyway.

My fault then, I'll request a move.
Cranium #7
Posted 22 October 2012 - 06:46 PM
I'm not scolding you, that's for sure. Your program looks very nice, and CAN be placed here, but would get more exposure on the utilities section.
Oh, and btw, you somehow changed the font size of the image links. Don't know how you managed that. Just highlight the code there, and click on the eraser button to remove formatting. Derpy things like that happen to my edited posts all the time.
Turtle #8
Posted 22 October 2012 - 06:49 PM
I'm not scolding you, that's for sure. Your program looks very nice, and CAN be placed here, but would get more exposure on the utilities section.
Oh, and btw, you somehow changed the font size of the image links. Don't know how you managed that. Just highlight the code there, and click on the eraser button to remove formatting. Derpy things like that happen to my edited posts all the time.

I managed to get tumbnails in there, [CLOSE ENOUGH], And, I didn't interpretate it as scolding, I just didn't feel a need for a huge reply.