Convert PNM to MD

Turn PNM images into Markdown. The text read by OCR as Markdown, one paragraph for each block of text the reader finds, in English unless language lists others.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

The text in a picture, as Markdown.The text in the image is read and written to one MD file.

  1. What you get

    One Markdown file with the text that is read from the picture. PNM images hold only pixels, so the text is recognized with OCR.

  2. What it leaves behind

    Layout, tables and pictures are dropped. Only the text is kept, not the way it was arranged on the image.

    If the picture has no readable text, the conversion stops with unsupported_elements.

  3. Language

    Without Language, the text is read as English. Letters such as é, ß and ł then come out wrong, and other scripts, such as Cyrillic, Arabic, Thai, Korean or Chinese, are not read.

    Set Language to the languages in the picture. Separate several with commas, such as fr,en.

PNM and MD.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 · PNM

Portable Anymap

Portable anymap images, the simplest raster format: PBM, PGM and PPM.

Extensions
.pnm .ppm .pgm .pbm
MIME type
image/x-portable-anymap
Kind
Images
To · MD

Markdown

Plain text with light markup for headings, lists, links and code. What agents and developers write in.

Extensions
.md .markdown .mdown
MIME type
text/markdown
Kind
Text and data

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

terminal
$ cv convert photo.pnm photo.md
$ cv convert photo.pnm photo.md

Questions.What people ask about PNM to MD.

01OF 04

No. Tables are dropped, along with the layout and any pictures.

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

Set Language to the languages the text is in, such as fr,en. Without it, the text is read as English.

The PNM format covers PBM, PGM and PPM images. See every PNM conversion for the other conversions from this format.

More conversions.Other ways in and out of PNM and MD.