pkg.soopen package index

brew / 排名 1140

使用 Homebrew, apt, MacPorts, Nix, pacman, zypper 安装 img2pdf

查看 img2pdf 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install img2pdf

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install img2pdf

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

Linux

Debian apt已验证 · 92%
sudo apt install img2pdf

Debian stable package indexes · img2pdf · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#img2pdf

nixpkgs package indexes · img2pdf · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S img2pdf

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

openSUSE zypper已验证 · 92%
sudo zypper install python313-img2pdf

openSUSE Tumbleweed package metadata · python313-img2pdf · 来源: download.opensuse.org

概览

软件包摘要

Convert images to PDF via direct JPEG inclusion

命令和别名

  • img2pdf
  • img2pdf-gui

历史

项目历史与用法

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.

时间线

  • 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.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:image

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
img2pdf可执行文件已索引可执行文件从本地可执行文件索引发现。
img2pdf-gui可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本0.6.3
管理器更新时间
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:img2pdf
版本0.6.3
软件包管理器Homebrew
主页https://gitlab.mister-muffin.de/josch/img2pdf
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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%

python313-img2pdf 0.6.3-3.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 依赖
  • 5 提供
  • normalized package name match
  • 匹配方式:Img2pdf
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: python313-img2pdf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst
zypper95%

python314-img2pdf 0.6.3-3.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 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Img2pdf
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: python314-img2pdf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst
MacPorts95%

img2pdf

sudo port install img2pdf
  • normalized package name match
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation