Jump to content




Imagecon - Convert a Image to Code


  • You cannot reply to this topic
No replies to this topic

#1 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 18 July 2017 - 12:04 PM

I have noticed, that some people write a temporary file to loda a image. To help this people I have write a small program, that converts a image to code. I know, you can just use textutils.serialize but the output of my program looks better,

Instalation:
wget https://raw.githubusercontent.com/Wilma456/Computercraft/master/Tools/imagecon.lua imagecon.lua
Or with Packman

Usage:
imagecon <inputfile> <outputfile>
inputfile is the path of your Picture.
After Running you can copy the content of the outputfile in your program.

Example






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users