From 5540365cfdd11aa63f2bc1dbc80c8a8cc87b79ed Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues <josch@mister-muffin.de> Date: Wed, 11 Sep 2024 11:34:14 +0200 Subject: [PATCH] add example for how to specify custom dpi --- src/img2pdf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/img2pdf.py b/src/img2pdf.py index f89670b..aaa30dd 100755 --- a/src/img2pdf.py +++ b/src/img2pdf.py @@ -3959,6 +3959,10 @@ Examples: $ img2pdf --output out.pdf page1.jpg page2.jpg + Use a custom dpi value for the input images: + + $ img2pdf --output out.pdf --imgsize 300dpi page1.jpg page2.jpg + Convert a directory of JPEG images into a PDF with printable A4 pages in landscape mode. On each page, the photo takes the maximum amount of space while preserving its aspect ratio and a print border of 2 cm on the top and