Automic VaultAutomic Vault

brew

Install img2pdf with Homebrew, apt, MacPorts, Nix, pacman, zypper

Convert images to PDF via direct JPEG inclusion. Version 0.6.3 via Homebrew; verified 2026-04-22.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install img2pdf

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install img2pdf

MacPorts ports tree · graphics/img2pdf/Portfile · source: api.github.com

Linux

Debian aptverified · 92%
sudo apt install img2pdf

Debian stable package indexes · img2pdf · source: deb.debian.org

Nixverified · 92%
nix profile install nixpkgs#img2pdf

nixpkgs package indexes · img2pdf · source: raw.githubusercontent.com

Arch Linux pacmanverified · 92%
sudo pacman -S img2pdf

Arch Linux sync databases · img2pdf · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install python311-img2pdf

openSUSE Tumbleweed package metadata · python311-img2pdf · source: download.opensuse.org

overview

Package summary

Convert images to PDF via direct JPEG inclusion

Commands and aliases

  • img2pdf
  • img2pdf-gui

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2014: 0.1.0 records the initial PyPI packaging work; 0.1.1 changes the license from GPL to LGPL.
  • 2015: 0.2.0 moves the project to gitlab.mister-muffin.de and adds a larger test suite and standard-input support.
  • 2018: 0.3.1 directly copies CCITT Group 4 TIFF images into PDF containers.
  • 2020: 0.4.0 adds PDF/A-1b support, pikepdf support, ICC profile handling, and a rewritten test suite.
  • 2023: 0.5.0 changes thumbnail behavior and accepts pathlib.Path objects as input.
  • 2025: 0.6.0 adds JBIG2 support; 0.6.3 adds pyproject.toml and merges the jp2 module.

Related projects

  • Pillow supplies image metadata and fallback conversion support.
  • pikepdf is an optional PDF engine used in newer img2pdf releases.
  • ImageMagick is the comparison point named by the README for conventional image-to-PDF conversion.
  • SANE scanimage is shown in the README as part of a scanner-to-PDF pipeline.

security posture

Risk level: blue

broad file, network, media, or database tool signal.

Risk classifier

blue risk · medium confidence · tool

Why

  • broad file, network, media, or database tool signal

Signals

  • text:image

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 3 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
img2pdfcliglobal executable
img2pdf-guicliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version0.6.3
manager updated2026-04-22
local dataok
upstreamnot checked
latest detectednot detected

https://gitlab.mister-muffin.de/josch/img2pdf

install metadata

Package metadata

Package keybrew:img2pdf
Version0.6.3
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/img2pdf
Homepagehttps://gitlab.mister-muffin.de/josch/img2pdf
Repositoryhttps://gitlab.mister-muffin.de/josch/img2pdf
Upstream docshttps://gitlab.mister-muffin.de/josch/img2pdf
LicenseLGPL-3.0-or-later
Source archivehttps://files.pythonhosted.org/packages/8e/97/ca44c467131b93fda82d2a2f21b738c8bcf63b5259e3b8250e928b8dd52a/img2pdf-0.6.3.tar.gz
Last updated2026-04-22T13:09:58Z
Pulseupdated
Dependenciespillow, python@3.14, qpdf
Uses from macOSlibxml2, libxslt
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameimg2pdf
Version Scheme0
Revision1
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

img2pdf 0.6.1-1

Lossless conversion of raster images to PDF

https://gitlab.mister-muffin.de/josch/img2pdf

sudo apt install img2pdf
  • Section: utils
  • Architecture: all
  • 2 dependencies
  • normalized package name match
  • Matched by: Img2pdf
Debian stable package indexes · deb.debian.org · Debian stable package indexes: img2pdf from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-img2pdf 0.6.1-1

Lossless conversion of raster images to PDF (library)

https://gitlab.mister-muffin.de/josch/img2pdf

sudo apt install python3-img2pdf
  • Section: python
  • Architecture: all
  • Source Package: img2pdf
  • 3 dependencies
  • normalized package name match
  • Matched by: Img2pdf
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-img2pdf from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

img2pdf

nix profile install nixpkgs#img2pdf
  • normalized package name match
  • Matched by: Img2pdf
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: img2pdf from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

img2pdf 0.5.1-1

Lossless conversion of raster images to PDF

https://gitlab.mister-muffin.de/josch/img2pdf

sudo apt install img2pdf
  • Section: universe/utils
  • Architecture: all
  • 3 dependencies
  • normalized package name match
  • Matched by: Img2pdf
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: img2pdf from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

python3-img2pdf 0.5.1-1

Lossless conversion of raster images to PDF (library)

https://gitlab.mister-muffin.de/josch/img2pdf

sudo apt install python3-img2pdf
  • Section: universe/python
  • Architecture: all
  • Source Package: img2pdf
  • 3 dependencies
  • normalized package name match
  • Matched by: Img2pdf
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python3-img2pdf from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
pacman95%

img2pdf 0.6.3-1

Losslessly convert raster images to PDF

https://gitlab.mister-muffin.de/josch/img2pdf

sudo pacman -S img2pdf
  • License: LGPL3
  • Architecture: any
  • 2 dependencies
  • normalized package name match
  • Matched by: Img2pdf
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: img2pdf from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

python311-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-img2pdf
  • License: LGPL-3.0-or-later
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: img2pdf
  • 6 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Img2pdf
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: python311-img2pdf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

python313-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-img2pdf
  • License: LGPL-3.0-or-later
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: img2pdf
  • 6 dependencies
  • 5 provides
  • normalized package name match
  • Matched by: Img2pdf
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: python313-img2pdf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

python314-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-img2pdf
  • License: LGPL-3.0-or-later
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: img2pdf
  • 6 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Img2pdf
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: python314-img2pdf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

img2pdf

sudo port install img2pdf
  • normalized package name match
  • Matched by: Img2pdf
MacPorts ports tree · api.github.com · MacPorts ports tree: graphics/img2pdf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment