macOS
brew install img2pdflocal Homebrew formula metadata
sudo port install img2pdfMacPorts ports tree · graphics/img2pdf/Portfile · source: api.github.com
brew
Convert images to PDF via direct JPEG inclusion. Version 0.6.3 via Homebrew; verified 2026-04-22.
install
brew install img2pdflocal Homebrew formula metadata
sudo port install img2pdfMacPorts ports tree · graphics/img2pdf/Portfile · source: api.github.com
sudo apt install img2pdfDebian stable package indexes · img2pdf · source: deb.debian.org
nix profile install nixpkgs#img2pdfnixpkgs package indexes · img2pdf · source: raw.githubusercontent.com
sudo pacman -S img2pdfArch Linux sync databases · img2pdf · source: geo.mirror.pkgbuild.com
sudo zypper install python311-img2pdfopenSUSE Tumbleweed package metadata · python311-img2pdf · source: download.opensuse.org
overview
Convert images to PDF via direct JPEG inclusion
history
img2pdf is a Python CLI and library for lossless conversion of raster images into PDF. Its central trick is treating PDF as a container for image data whenever possible, avoiding the re-encoding that makes many image-to-PDF workflows slower, larger, or lossy.
The changelog records an initial 0.1.0 packaging entry in March 2014, followed by public PyPI uploads beginning in 2014. The project moved from GitHub to gitlab.mister-muffin.de in the 0.2.0 development line documented in 2015.
The README frames img2pdf around three priorities: always lossless, small output, and fast conversion. It directly contrasts that with conventional conversion tools such as ImageMagick, which may re-encode images, inflate output, or consume more CPU and memory.
Over time the project added Python 3 support, reproducible output options, multipage and palette image handling, CCITT Group 4 TIFF direct copying, PDF/A-1b output, pikepdf support, pathlib input, JBIG2 support, and a minimal tkinter GUI.
img2pdf spread through both Python and operating-system package channels. Its README documents pip installation, source installation, Debian and Ubuntu repository installation, and Windows executables from the project's release page.
Homebrew formula metadata shows bottled distribution for the CLI on macOS and Linux. PyPI metadata supplies the Python-library distribution path, making img2pdf useful both in scripts and as a dependency inside larger document-processing programs.
At the command line, users pass one or more image files and write a PDF with -o, or stream a single image from standard input to standard output. The README includes a SANE scanimage pipeline that turns a scan directly into a PDF.
As a library, callers use img2pdf.convert with filenames, file handles, pathlib paths, globs, or in-memory image data. Options cover page layout, DPI, rotation handling, and PDF/A output.
img2pdf is package-nerd significant because it solves a common automation problem with a precise format insight: for JPEG, JPEG2000, suitable PNG, CCITT Group 4 TIFF, and JBIG2 cases, the best conversion is often not conversion at all, but direct embedding.
That makes it a favorite kind of small package: easy to install, easy to shell-script, and technically sharper than larger generic image suites for its particular job.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
img2pdf | cli | global executable | |
img2pdf-gui | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://gitlab.mister-muffin.de/josch/img2pdf
install metadata
| Package key | brew:img2pdf |
|---|---|
| Version | 0.6.3 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/img2pdf |
| Homepage | https://gitlab.mister-muffin.de/josch/img2pdf |
| Repository | https://gitlab.mister-muffin.de/josch/img2pdf |
| Upstream docs | https://gitlab.mister-muffin.de/josch/img2pdf |
| License | LGPL-3.0-or-later |
| Source archive | https://files.pythonhosted.org/packages/8e/97/ca44c467131b93fda82d2a2f21b738c8bcf63b5259e3b8250e928b8dd52a/img2pdf-0.6.3.tar.gz |
| Last updated | 2026-04-22T13:09:58Z |
| Pulse | updated |
| Dependencies | pillow, python@3.14, qpdf |
| Uses from macOS | libxml2, libxslt |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | img2pdf |
| Version Scheme | 0 |
| Revision | 1 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
img2pdf 0.6.1-1
Lossless conversion of raster images to PDF
https://gitlab.mister-muffin.de/josch/img2pdf
sudo apt install img2pdfpython3-img2pdf 0.6.1-1
Lossless conversion of raster images to PDF (library)
https://gitlab.mister-muffin.de/josch/img2pdf
sudo apt install python3-img2pdfimg2pdf
nix profile install nixpkgs#img2pdfimg2pdf 0.5.1-1
Lossless conversion of raster images to PDF
https://gitlab.mister-muffin.de/josch/img2pdf
sudo apt install img2pdfpython3-img2pdf 0.5.1-1
Lossless conversion of raster images to PDF (library)
https://gitlab.mister-muffin.de/josch/img2pdf
sudo apt install python3-img2pdfimg2pdf 0.6.3-1
Losslessly convert raster images to PDF
https://gitlab.mister-muffin.de/josch/img2pdf
sudo pacman -S img2pdfpython311-img2pdf 0.6.3-2.1
Python module for converting images to PDF via direct JPEG inclusion
https://gitlab.mister-muffin.de/josch/img2pdf
sudo zypper install python311-img2pdfpython313-img2pdf 0.6.3-2.1
Python module for converting images to PDF via direct JPEG inclusion
https://gitlab.mister-muffin.de/josch/img2pdf
sudo zypper install python313-img2pdfpython314-img2pdf 0.6.3-2.1
Python module for converting images to PDF via direct JPEG inclusion
https://gitlab.mister-muffin.de/josch/img2pdf
sudo zypper install python314-img2pdfimg2pdf
sudo port install img2pdfsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.