notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine

Bot filter coming soon

To deter bots pegging the database CPU to 100%, a bot testing filter to be added to the website. This should not affect newsfeeds etc. Anubis seems light-weight - it is already in use within the FreeBSD Project. This notice is just a heads up in case you see something odd. This notice will be updated after Anubis is installed.

Port details on branch 2024Q3
py-img2pdf Convert images to PDF via direct JPEG inclusion
0.6.1 graphics on this many watch lists=4 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 0.6.1Version of this port present on the latest quarterly branch.
Maintainer: kai@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2019-07-02 07:20:10
Last Update: 2025-05-18 12:05:22
Commit Hash: b9d8acc
People watching this port, also watch:: webcamd, twemoji-color-font-ttf, minidlna, xfce, bash
Also Listed In: python
License: LGPL3+
WWW:
https://gitlab.mister-muffin.de/josch/img2pdf
Description:
This Python package provides lossless conversion of raster images to PDF. You should use img2pdf if your priorities are (in this order): 1. "always lossless": The image embedded in the PDF will always have the exact same color information for every pixel as the input. 2. "small": If possible, the difference in filesize between the input image and the output PDF will only be the overhead of the PDF container itself. 3. "fast": If possible, the input image is just pasted into the PDF document as-is without any CPU hungry re-encoding of the pixel data. Conventional conversion software (like ImageMagick) would either: 1. Not be lossless because lossy re-encoding to JPEG. 2. Not be small because using wasteful flate encoding of raw pixel data. 3. Not be fast because input data gets re-encoded. Another advantage of not having to re-encode the input (in most common situations) is, that img2pdf is able to handle much larger input than other software, because the raw pixel data never has to be loaded into memory.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
There is no configure plist information for this port.
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}img2pdf>0:graphics/py-img2pdf@${PY_FLAVOR}
To install the port:
cd /usr/ports/graphics/py-img2pdf/ && make install clean
To add the package, run one of these commands:
  • pkg install graphics/py-img2pdf
  • pkg install py311-img2pdf
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
NOTE: This is a Python port. Instead of py311-img2pdf listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py311-img2pdf
Package flavors (<flavor>: <package>)
  • py311: py311-img2pdf
distinfo:
TIMESTAMP = 1747416899 SHA256 (img2pdf-0.6.1.tar.gz) = 306e279eb832bc159d7d6294b697a9fbd11b4be1f799b14b3b2174fb506af289 SIZE (img2pdf-0.6.1.tar.gz) = 106513

Packages (timestamps in pop-ups are UTC):
py37-img2pdf
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest--0.3.5---0.3.5-
FreeBSD:13:quarterly--------
FreeBSD:14:latest--------
FreeBSD:14:quarterly--------
FreeBSD:15:latest--n/a-n/a---
 
py39-img2pdf
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest--------
FreeBSD:13:quarterly------0.5.1_10.5.1_1
FreeBSD:14:latest-------0.4.4_3
FreeBSD:14:quarterly------0.5.1_10.5.1_1
FreeBSD:15:latest--n/a-n/a-0.5.1_1-
 
py311-img2pdf
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest0.6.10.6.1-0.6.10.6.1---
FreeBSD:13:quarterly0.6.0_20.6.1-0.6.0_20.6.1---
FreeBSD:14:latest0.6.10.6.1-0.6.10.6.1---
FreeBSD:14:quarterly0.6.10.6.1-0.6.10.6.1---
FreeBSD:15:latest0.6.10.6.1n/a0.6.1n/a---
 
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py311-setuptools>0 : devel/py-setuptools@py311
  2. py311-wheel>0 : devel/py-wheel@py311
  3. python3.11 : lang/python311
  4. py311-build>=0 : devel/py-build@py311
  5. py311-installer>=0 : devel/py-installer@py311
Test dependencies:
  1. py311-packaging>0 : devel/py-packaging@py311
  2. py311-scipy>0 : science/py-scipy@py311
  3. exiftool : graphics/p5-Image-ExifTool
  4. jpegtopnm : graphics/netpbm
  5. pdftocairo : graphics/poppler-utils
  6. py311-pytest>=7,1 : devel/py-pytest@py311
  7. python3.11 : lang/python311
  8. ImageMagick7>=7 : graphics/ImageMagick7
Runtime dependencies:
  1. py311-pikepdf>0 : textproc/py-pikepdf@py311
  2. py311-pillow>0 : graphics/py-pillow@py311
  3. py311-tkinter>0 : x11-toolkits/py-tkinter@py311
  4. python3.11 : lang/python311
This port is required by:
for Run
  1. textproc/py-ocrmypdf

Configuration Options:
===> The following configuration options are available for py311-img2pdf-0.6.1: GUI=on: GUI (Graphical User Interface) support ===> Use 'make config' to modify these settings
Options name:
graphics_py-img2pdf
USES:
python shebangfix magick:7,test
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (2 items)
Collapse this list.
  1. https://files.pythonhosted.org/packages/source/i/img2pdf/
  2. https://pypi.org/packages/source/i/img2pdf/
Collapse this list.

There are no commits on branch 2024Q3 for this port