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.
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.
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.
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.
- 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 - 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.
a4210 × 297 mm.letter8.5 × 11 in.autoEach page takes the size of its own content.
- 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.
- 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 - 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
reStructuredText
reStructuredText, the markup of Python documentation and Sphinx.
- Extensions
- .rst
- MIME type
- text
/x -rst - Kind
- Text and data
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.
$ cv convert report.rst report/ --to jpeg$ cv convert report.rst report/ --to jpegQuestions.What people ask about RST to JPG.
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.