macOS
brew install img2pdflocal Homebrew formula metadata
sudo port install img2pdfMacPorts ports tree · graphics/img2pdf/Portfile · 来源: api.github.com
安装
brew install img2pdflocal Homebrew formula metadata
sudo port install img2pdfMacPorts ports tree · graphics/img2pdf/Portfile · 来源: api.github.com
sudo apt install img2pdfDebian stable package indexes · img2pdf · 来源: deb.debian.org
nix profile install nixpkgs#img2pdfnixpkgs package indexes · img2pdf · 来源: raw.githubusercontent.com
sudo pacman -S img2pdfArch Linux sync databases · img2pdf · 来源: geo.mirror.pkgbuild.com
sudo zypper install python313-img2pdfopenSUSE Tumbleweed package metadata · python313-img2pdf · 来源: download.opensuse.org
概览
Convert images to PDF via direct JPEG inclusion
历史
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.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
img2pdf | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
img2pdf-gui | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:img2pdf |
|---|---|
| 版本 | 0.6.3 |
| 软件包管理器 | Homebrew |
| 主页 | https://gitlab.mister-muffin.de/josch/img2pdf |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 img2pdfpython313-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-img2pdfpython314-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-img2pdfimg2pdf
sudo port install img2pdf来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.