BSD Ports

graphics/py-img2pdf 0.6.3_2 FreeBSD

Convert images to PDF via direct JPEG inclusion

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
LGPL3+
Categories
graphics, python
Package size
100.6 KiB, 540.7 KiB installed

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.

In the other systems

SystemPortVersion
FreeBSDgraphics/py-img2pdf0.6.3_2
DragonFlygraphics/py-img2pdf0.6.0_2
HardenedBSDgraphics/py-img2pdf0.6.3_2
GhostBSDgraphics/py-img2pdf0.6.3_2

Install

Binary package:

pkg install py312-img2pdf

From the ports tree:

cd /usr/ports/graphics/py-img2pdf/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-img2pdf>0:graphics/py-img2pdf

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.6.3_20.6.3_2-0.6.10.6.3_2
FreeBSD:14:quarterly0.6.3_20.6.3_2n/a0.6.10.6.3_2
FreeBSD:15:latest0.6.3_20.6.3_2n/a0.6.10.6.1
FreeBSD:15:quarterly0.6.3_20.6.3_2n/an/an/a
FreeBSD:16:latest0.6.3_20.6.3_2n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 2

Test 5

The full lists below include those, and their dependencies in turn.

Build dependencies 15
Run dependencies 64

Configuration

Options name: graphics_img2pdf

OptionDefaultDescription
GUIonGUI (Graphical User Interface) support
USES
python shebangfix magick:7,test
Service scripts
none

Files

distinfo 1
FileSizeSHA256
img2pdf-0.6.3.tar.gz120350219518020f5bd242bdc46493941ea3f756f664c2e86f2454721e74353f58cd95
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.