AptLynx

Command-line tool

img2pdf

brew/img2pdf

Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev

Convert images to PDF via direct JPEG inclusion

At a glance

Type
Command-line tool
Install on
Windows, macOS, Linux
Last checked
25 Oct 2026, 21:09 UTC

Install it

Windows

pipx install img2pdf

macOS

brew install img2pdf
pipx install img2pdf

Linux

brew install img2pdf
pipx install img2pdf

Convert one or more images to a single PDF, each image being on its own page

img2pdf path/to/image1.ext path/to/image2.ext ... --output path/to/file.pdf

Convert only the first frame of a multi-frame image to PDF

img2pdf path/to/file.gif --first-frame-only --output path/to/file.pdf

Auto orient the image, use a specific page size in landscape mode, and set a border of specific sizes horizontally and vertically

img2pdf path/to/image.ext --auto-orient --pagesize A4^T --border 2cm:5.1cm --output path/to/file.pdf

Browse

Related command-line tools

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents