Introducing the new LiveCode stack file formats…JPEG & PNG?

by Neil Roger on May 30, 2014 , 15 comments

You might be wondering “What is this guy talking about??” or “Image formats for LiveCode stacks, eh?”. Well don’t worry, we’re not changing anything. Read on and all should become clear.

This does bring me onto a rather interesting point and one of the things that can make working in technical support quite a challenge at times….receiving a screenshot of a script and being asked “Why is it not working?”


Let me start of by saying that we are always happy to help when it comes to Tech Support. For basic issues, we are generally able to push, point or shove you (but gently) in the right direction. When we receive more advanced queries such as, full hard crashes of the IDE or very specific bugs we require a “recipe” which we can follow in order to reproduce and effectively troubleshoot the issue.

I am very glad to say that the majority of our users are happy to supply a stack file and an easy to follow recipe when reporting these issues, but there have been times when we receive…wait for it…a screenshot of the script.  Now you might be thinking, “What’s wrong with that?”…Well let me tell you :)

A screenshot, even though it may contain the troublesome script, requires a substantial amount of time to re-type, as you cannot select the text contained within. This especially becomes very difficult to manage when there are 100’s of lines of script across multiple screenshots.

We then have the added problem of effectively reproducing the issue as, even though we have copied the script correctly, there could be an underlying stack issue causing the problem.

It’s not just direct support that experience this Screenshot phenomenon, I have seen specific LiveCode forum posts of scriptshots which are either questions being asked, or replies to questions :(. This can  really frustrate both beginners and advanced users alike.

With that being said, we at RunRev are not perfect and I have ,  in the past, come across some tutorials on our lesson portal where the scripts have been in images (although I cannot locate these anymore… *phew*).

There is reason behind my rant. I would like to let everyone know of an awesome piece of kit that has made receiving screenshots scripts less daunting than it used to be.

For users of the Google Chrome browser, there is an extension called “Project Naptha”

Project Naptha, as their website states, “applies state-of-the-art computer vision algorithms on every image you see while browsing the web. The result is a seamless and intuitive experience, where you can highlight as well as copy and paste and even edit and translate the text formerly trapped within an image.”

What this essentially means is, that you have the ability to copy text from an image as if it was a text document….(what witchcraft is this I hear you scream!)

When I first saw this advertised, I was very sceptical and thought it was just going to be another attempt at some OCR that would soon vanish into the ether…how wrong was I!

Let me give you a brief demo to show how amazing this is-

You start by adding it to Google chrome via the “Add to Chrome” button on the Project Naptha home page. This is shown below-

Screen Shot 2014-05-21 at 15.44.47.png

After this has been added, I would recommend restarting your Chrome Browser although it should automatically start working on any new tabs you create.

Now, here comes the magic….Navigate to an image on any webpage that contains some form of legible text. As an example I uploaded the following image to the techsupport on-rev account.


Now, you should notice that if you however over the image, it changes from an arrow to a text selection icon.

You will then be able to copy & paste the text to your hearts content. Simple.

Screen Shot 2014-05-21 at 16.10.22.png

(mind = blown!)

Not only is this a great extension for extracting LiveCode scripts, but if you are interested in design work (e.g.Photoshop) and you want to replicate an image that contains text, open the source image in Chrome and you will be able to copy the required text directly.

Screen Shot 2014-05-21 at 16.08.34.png

selecting text in any image is easy

Another neat feature, that I discovered when writing this post, is that you have the ability to automatically remove text from images!!!! Simply select the text you wish to remove, right click —> Translate—>Erase Text….. Wow!



I do have to admit, that although this has completely revolutionized working with text heavy images for me, it does have a few quirks (e.g. wrong character returned, characters not recognised) but even with these quirks I will not be removing it any time soon. I’m sure things will only get better.

Hopefully you will find this Chrome extension useful and, if you do decide to use it, please let me know in the comments below. I would also love to hear from you if there is anything specific that makes you go “urggh…..” when either communicating with the users of an app you’ve created or generally trying to find answers to any scripting issues you have.

Posted By


Neil is the LiveCode Technical Support Lead and has a BSC(Hon) in Audio Technology with Multimedia. He also enjoys sleeping in on weekends.

Neil RogerIntroducing the new LiveCode stack file formats…JPEG & PNG?