Convert XPM to TXT

Turn XPM images into TXT. The text read by OCR as plain lines, in English unless language lists others.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop XPM files on the dialor turn it to pick what to do

Text from an XPM picture.The result is one plain text file. Layout, tables and pictures are dropped.

  1. What you get

    One TXT file holds the text found in the XPM picture. It has no formatting at all, so it is the most portable form of the text.

    The Language option tells OCR which letters to expect.

  2. What it leaves behind

    Layout, tables and pictures are dropped. Only the text remains, with none of the structure around it.

    A picture with no readable text has nothing to keep, so the conversion stops with unsupported_elements.

  3. Setting the language

    Set Language to the languages the text is in. Naming the right language matters most for Korean, Japanese and Chinese.

    To give several languages, separate them with commas, such as en,ko.

XPM and TXT.What each format is, and the options this conversion takes.

  1. 01 · language

    Language

    The languages the text is in, so OCR knows which letters to expect. Without it the text is read as English, so letters such as é, ß and ł come out wrong and other scripts, such as Cyrillic, Arabic, Thai, Korean or Chinese, are not read. Separate several with commas, such as fr,en.

The formats

From · XPM

X PixMap

X PixMap, images as C source.

Extensions
.xpm
MIME type
image/x-xpixmap
Kind
Images
To · TXT

Plain Text

Plain text with no formatting at all. The smallest, most portable form of a document.

Extensions
.txt .log
MIME type
text/plain
Kind
Text and data

In your code.The same XPM to TXT conversion through the API, for your app or your agent.

terminal
$ cv convert photo.xpm photo.txt
$ cv convert photo.xpm photo.txt

Questions.What people ask about XPM to TXT.

01OF 04

No. Layout, tables and pictures are dropped, and only the text is kept.

The picture has no readable text. The conversion stops with unsupported_elements in that case.

Set Language to each language, separated by commas, such as en,ko.

See every XPM conversion for the other formats XPM can become. To join several text files afterward, you can merge TXT.

More conversions.Other ways in and out of XPM and TXT.