Convert MDOC to WEBP

Turn MDOC files into WEBP files. Typeset in Libertinus Serif with examples in DejaVu Sans Mono on A4 pages unless page_size says letter as a document rather than a terminal manual, with the sections as headings, tag lists as definition lists, flags, arguments and command names as code and column lists as tables.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

Manual pages as WebP images.Each page of the manual becomes one WebP at 150 dpi and quality 90.

  1. What you get

    Each page of the MDOC file is drawn as a WebP picture. The conversion can write one or more files, such as one per page. The text is typeset in Libertinus Serif, and examples are set in DejaVu Sans Mono.

    Pages are A4 unless you set Page size to Letter. The manual is laid out as a document, not as a terminal manual.

  2. How the page is laid out

    Sections become headings. Tag lists become definition lists. Flags, arguments and command names are set as code. Column lists become tables.

  3. Options

    Set Resolution (dpi) to change how sharp the pages are. The default is 150. Higher is sharper and makes a bigger file, and 300 is the usual choice for print.

    Set Lossless to keep text edges exact. The result is much bigger than a lossy one. Without it, Quality sets how much detail is kept, and above 90 the file grows quickly while the picture barely changes.

    Set Pages to convert only some pages, such as 1-3,7. Set Page size to Auto to let each page take the size of its own content.

  4. Size limits

    WebP holds at most 16383 pixels a side, so Set Width stops there. If you give only Width, the height follows the aspect ratio. If you give both Width and height, the picture can be stretched.

    To change a WebP after the conversion, you can resize WEBP or compress WEBP.

MDOC and WEBP.What each format is, and the options this conversion takes.

  1. 01 · dpi

    Resolution (dpi)

    How many pixels each inch of the page becomes when it is drawn as a picture. Higher is sharper and makes a bigger file. Around 150 reads well on screen, and 300 is the usual choice for print.

    36 to 600 default 150
  2. 02 · lossless

    Lossless

    Encodes without losing anything where the format can. The result is identical to the input in pixels or samples, and much bigger than a lossy one.

  3. 03 · page_size

    Page size

    The size of the pages written. A4 is the standard in most of the world and Letter in North America.

    • a4 210 × 297 mm.
    • letter 8.5 × 11 in.
    • auto Each page takes the size of its own content.
    a4 · letter · auto default a4
  4. 04 · pages

    Pages

    Converts only some pages. Write single pages and ranges separated by commas, such as 1-3,7. Every page is read when it is left out.

  5. 05 · quality

    Quality

    How much detail lossy compression keeps. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.

    1 to 100 default 90
  6. 06 · width

    Width (px)

    The exact width of the result in pixels. The height follows the aspect ratio unless it is also given, in which case the picture can be stretched.

    1 to 16383

The formats

From · MDOC

BSD mdoc Manual

Manual pages written in the semantic mdoc macros of BSD systems and macOS.

Extensions
.mdoc
MIME type
text/x-mdoc
Kind
Text and data
To · WEBP

WebP

Google's web image format with lossy and lossless modes, alpha and animation. Smaller than JPEG and PNG.

Extensions
.webp
MIME type
image/webp
Kind
Images

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

terminal
$ cv convert report.mdoc report/ --to webp
$ cv convert report.mdoc report/ --to webp

Questions.What people ask about MDOC to WEBP.

01OF 04

It can write one or more files, such as one per page. Each page of the manual becomes one WebP.

A4, unless you set Page size to Letter. Auto gives each page the size of its own content.

Set Lossless to keep text edges exact. You can also raise Resolution (dpi), and 300 is the usual choice for print.

Yes. Set Pages to single pages and ranges separated by commas, such as 1-3,7. Every page is read when it is left out.

More conversions.Other ways in and out of MDOC and WEBP.