Edit Image Text With Chrome’s Project Naptha: What It Is & How To Use It

Chris Hoffman 26-06-2014

Text is normally trapped inside images. With the Project Naptha Chrome extension, you can select, copy, and edit that text with just a few clicks. It’s a quick way to copy important text from images or make your own meme. The extension uses advanced computer imaging technology — but, as a user, it feels a bit like magic.


How Does It Work?

There are multiple forms of text on the web. There’s standard text that you can copy and paste into other documents. You can use a bookmarklet Stop Installing Browser Add-ons - For a Faster, Leaner Browser Use Bookmarklets Instead Read More  or other tool to easily modify the text that appears on web pages all you like. Text in images is different. To a computer, the text in images isn’t really text — it’s just another part of the image. That’s why you can’t just easily erase or edit text in images.

Project Naptha is a Chrome extension The Best Chrome Extensions A list of only the best extensions for Google Chrome, including suggestions from our readers. Read More made by Kevin Kwok. It detects the text in images so you can select, copy, and edit it. This extension will even allow you to press Ctrl+F and search inside images on the current page, but that feature is currently experimental.

select text with project naptha

This project uses the same sort of OCR (Optical Character Recognition) The 3 Best Free OCR Tools to Convert Your Files Back Into Editable Documents Optical Character Recognition (OCR) software turns printed documents into machine-readable text. Here we show you the best free OCR tools and how they work. Read More technology that services like Google Drive A Look At Google Drive, Google's Long-Awaited Cloud Storage Service After more than 6 years of rumors and a long-ago cancellation because "files are so 1990", Google Drive is finally here. Coming with 5 GB of free storage space, a Dropbox-like desktop sync client, and... Read More and Microsoft OneNote use to analyze the text inside images and make it searchable. That said, Project Naptha doesn’t use traditional OCR. Instead, it uses Stroke Width Transform, which was invented by Microsoft Research in 2008. This is a bit demanding, so the extension predicts where your mouse is moving and runs the algorithm to recognize text when your cursor moves toward an image. The “inpainting” technique allows the extension to automatically fill in parts of the image when you remove or alter text, sort of like how Adobe Photoshop’s content-aware fill Adobe Photoshop Keyboard Shortcuts 101 Whether you're a beginner or a pro, these Adobe Photoshop keyboard shortcuts will save you hours of time. Read More  works.

The image processing happens mostly on your computer by default, but you can also have the images uploaded to Google’s Tesseract OCR engine for improved accuracy.

Selecting and Modifying Text in Images

Install Project Naptha from the Chrome Web Store. Next, locate an image with text inside it in your web browser and mouse over it. You’ll be able to select text inside the image just as if that text were on a web page. You can right-click to copy your text to the clipboard.

The option that lets you modify text is a bit hidden. You’ll need to select text in an image, right-click that text, point to Translate, and select Modify Text. Type your new text for the image into the box that appears. Select the Erase Text option here if you’d rather just remove text from the image entirely.

modify text with project naptha

You’ll see multiple “Enter Text” boxes if the image has multiple regions of text you can edit. The result obviously won’t be perfect — the font won’t match exactly, for one thing. If text is removed from a more complex background, you may see a few graphical artifacts appear.

modify meme text in chrome

Tweaking Project Naptha

Project Naptha is an alternative to meme generator sites 5 Awesome Meme Generators on the Web Anyone who spends any serious amount of time on the Web will be aware of Internet memes. At least those who venture into the useless-yet-entertaining side streets the Web has to offer. Those who are... Read More , allowing you to quickly modify any meme you come across before sharing it with other people. If you’d like to use Project Naptha to edit images on your computer, you’ll need to visit Chrome’s Extensions page and enable the “Allow access to file URLs” option for Project Naptha. Drag and drop the image files from your hard drive into a Chrome tab and you can then edit them.

edit local images on computer with project naptha

You can also control which text-recognition engine the extension uses and adjust other options. Right-click text in an image and you’ll see all the options you can configure with this extension.

By default it uses the Ocrad.js JavaScript What is JavaScript and How Does It Work? [Technology Explained] Read More  library to run all the OCR processing on your computer, but you can also select one of the Tesseract options to have Google’s cloud-based OCR engine do the work for you. This may give you better results if the included OCR library isn’t recognizing some of the text.

select ocr engine for project naptha

Project Naptha isn’t magic — it’s just a sophisticated, easy-to-use implementation of some advanced text-recognition and image-modification techniques. If technology like this were integrated in browsers in the future, it could make images more interactive and easily searchable everywhere.

Have you tried using Project Naptha? Do you prefer it to using traditional meme-generation methods? What else could it be useful for? Share your thoughts with us in the comments below!

Image Credits: hand with a pincer Via Shutterstock

Explore more about: Google Chrome, Image Editor.

Whatsapp Pinterest

Enjoyed this article? Stay informed by joining our newsletter!

Enter your Email

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Pamela
    January 5, 2017 at 4:37 pm

    I have an image on my hard drive (a meme I created) that I added a bit of text to prematurely. I'd like to delete a portion of text. Can I use project naptha to do this even though image is not on the web? Thank you!

    If not, any other suggestions as to how I might do this? I worked hard creating this meme and unless I can remove some of the text, I'll have to trash it.