Convert RST to JPG

Turn RST files into JPEG 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 JPG pages.Each page of the document becomes one JPG, typeset and ready to view.

  1. What you get

    The RST is typeset in Libertinus Serif, with code in DejaVu Sans Mono. The title block, headings, lists, tables, code, admonitions, footnotes and math are all laid out on the page.

    Each page becomes one JPG, so a longer document gives you several files. They are drawn at 150 dpi and quality 90 unless you ask for something else.

  2. What changes or is dropped

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

    JPG is lossy, so the pages lose some detail in compression. It also has no transparency.

  3. Options

    Set Page size to choose A4, Letter or Auto. A4 is the default, and Auto gives each page the size of its own content.

    Set Pages to convert only some pages, with a value such as 1-3,7. Set Resolution (dpi) between 36 and 600. Around 300 is the usual choice for print, and higher values make a bigger file.

    Lower Quality for a bigger saving in detail, or raise it to keep more. Above 90 the file grows quickly while the picture barely changes. Set Width (px) for an exact width. If you also give a height, the picture can be stretched.

    To change the files afterwards, you can compress JPG or resize JPG.

RST and JPG.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 · 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
  3. 03 · 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.

  4. 04 · 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
  5. 05 · 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 20000

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

JPEG

Lossy photo compression that every device and browser opens. Small files, no transparency.

Extensions
.jpg .jpeg .jfif .jpe
MIME type
image/jpeg
Kind
Images

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

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

Questions.What people ask about RST to JPG.

01OF 04

One JPG for each page. A short document may give a single file, and a longer one gives more.

No. Images become their description instead of the picture.

Directives that only Sphinx knows keep just their text. Their special behavior is not applied.

Raise Resolution (dpi). Around 300 is the usual choice for print, though the file gets bigger.

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