Convert RST to WEBP

Turn RST files into WEBP files. Typeset in Libertinus Serif with code in DejaVu Sans Mono on A4 pages unless page_size says letter, with the title block, headings, lists, tables, code, admonitions, footnotes and math.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

Your reStructuredText as WebP pages.Each page of the document becomes one WebP image, typeset at 150 dpi.

  1. What you get

    One WebP per page, typeset in Libertinus Serif with code in DejaVu Sans Mono. Pages are A4 unless Page size is set to Letter.

    The title block, headings, lists, tables, code, admonitions, footnotes and math are all drawn on the pages. Quality is 90 unless you change it.

  2. What changes

    Directives that only Sphinx knows keep just their text. Comments are dropped. Images become their description, so the picture itself is not drawn.

    Lossy compression is the default, so the pixels are not identical to the source rendering. Turn on Lossless to keep text edges exact. A lossless file is much bigger than a lossy one.

  3. Size and pages

    Set Resolution (dpi) between 36 and 600. Higher is sharper and makes a bigger file. Around 150 reads well on screen, and 300 is the usual choice for print.

    Set Width (px) for an exact width. The height follows the aspect ratio unless you also give it, and then the picture can be stretched. WebP holds at most 16383 pixels a side, so width stops there.

    Set Pages to convert only some pages, such as 1-3,7. Every page is read when it is left out. To change an image after the conversion, see resize WEBP.

RST 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 · RST

reStructuredText

reStructuredText, the markup of Python documentation and Sphinx.

Extensions
.rst
MIME type
text/x-rst
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 RST to WEBP conversion through the API, for your app or your agent.

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

Questions.What people ask about RST to WEBP.

01OF 04

Yes. Each page becomes one WebP, so a document with several pages gives several files.

Yes. Set Page size to Letter. Choose Auto and each page takes the size of its own content.

No. Images become their description. The picture itself is not drawn.

Turn on Lossless. The result is identical in pixels to the rendering, and much bigger than a lossy one.

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