Convert TXT to JPG
Turn TXT files into JPEG files. The text is printed on A4 pages in a fixed-width font, line by line, so spaces and indentation stay where they were and long lines wrap at the page edge.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop TXT files on the dialor turn it to pick what to do
Text pages as JPG pictures.Each page of your text becomes one JPG, with spaces and indentation kept.
What you get
The text is printed on A4 pages in a fixed-width font, line by line. Spaces and indentation stay where they were, and long lines wrap at the page edge.
Each page becomes one JPG, so a long text gives you several files. The pictures are made at 150 dpi and quality 90 unless you ask otherwise.
What it leaves behind
The result is a picture of the text, not text. You cannot select or search the words in a JPG. To read the words back out of a picture, use JPG to TXT.
JPG compression is lossy, so the picture does not keep every detail of the printed page. JPG also has no transparency.
Options
Set Resolution (dpi) to change how many pixels each inch of the page gets. It accepts 36 to 600. Around 150 reads well on screen, and 300 is the usual choice for print. Higher is sharper and makes a bigger file.
Set Quality to a value from 1 to 100 to choose how much detail compression keeps. Above 90 the file grows quickly while the picture barely changes.
Set Width (px) to give the result an exact width in pixels, from 1 to 20000. The height follows the aspect ratio unless it is also given, in which case the picture can be stretched.
TXT 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 · 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 - 03 · 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
Plain Text
Plain text with no formatting at all. The smallest, most portable form of a document.
- Extensions
- .txt .log
- MIME type
- text
/plain - 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 TXT to JPG conversion through the API, for your app or your agent.
$ cv convert report.txt report/ --to jpeg$ cv convert report.txt report/ --to jpegQuestions.What people ask about TXT to JPG.
Yes. The text is printed in a fixed-width font line by line, so spaces and indentation stay where they were.
They wrap at the page edge.
Each page becomes one JPG. A text that fills several A4 pages gives one file per page.
Set Resolution (dpi) to 300, which is the usual choice for print. The default of 150 reads well on screen.