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):
-
"always lossless": The image embedded in the PDF will always have the exact same color information for every pixel as the input.
-
"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.
-
"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:
- Not be lossless because lossy re-encoding to JPEG.
- Not be small because using wasteful flate encoding of raw pixel data.
- 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
| System | Port | Version |
|---|---|---|
| FreeBSD | graphics/py-img2pdf | 0.6.3_2 |
| DragonFly | graphics/py-img2pdf | 0.6.0_2 |
| HardenedBSD | graphics/py-img2pdf | 0.6.3_2 |
| GhostBSD | graphics/py-img2pdf | 0.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.6.3_2 | 0.6.3_2 | - | 0.6.1 | 0.6.3_2 |
| FreeBSD:14:quarterly | 0.6.3_2 | 0.6.3_2 | n/a | 0.6.1 | 0.6.3_2 |
| FreeBSD:15:latest | 0.6.3_2 | 0.6.3_2 | n/a | 0.6.1 | 0.6.1 |
| FreeBSD:15:quarterly | 0.6.3_2 | 0.6.3_2 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.6.3_2 | 0.6.3_2 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}flit-core>=3.4<4: devel/py-flit-core
Runtime 2
${PYTHON_PKGNAMEPREFIX}pikepdf>0: textproc/py-pikepdf${PYTHON_PKGNAMEPREFIX}pillow>0: graphics/py-pillow
Test 5
${PYTHON_PKGNAMEPREFIX}packaging>0: devel/py-packaging${PYTHON_PKGNAMEPREFIX}scipy>0: science/py-scipyexiftool: graphics/p5-Image-ExifTooljpegtopnm: graphics/netpbmpdftocairo: graphics/poppler-utils
The full lists below include those, and their dependencies in turn.
Build dependencies 15
Run dependencies 64
- archivers/brotli
- archivers/libdeflate
- archivers/liblz4
- archivers/zstd
- converters/fribidi
- converters/libiconv
- devel/gettext-runtime
- devel/glib20
- devel/libffi
- devel/libinotify
- devel/pcre2
- devel/py-deprecated
- devel/py-lxml
- devel/py-olefile
- devel/py-packaging
- devel/py-wrapt
- devel/readline
- graphics/gdk-pixbuf2
- graphics/giflib
- graphics/graphite2
- graphics/jbig2dec
- graphics/jbigkit
- graphics/jpeg-turbo
- graphics/lcms2
- graphics/lerc
- graphics/libavif
- graphics/libimagequant
- graphics/libyuv
- graphics/openjpeg
- graphics/png
- graphics/py-pillow
- graphics/tiff
- graphics/webp
- lang/python312
- lang/python315
- lang/tcl86
- math/mpdecimal
- misc/shared-mime-info
- multimedia/aom
- multimedia/dav1d
- multimedia/vmaf
- print/freetype2
- print/harfbuzz
- print/indexinfo
- print/libraqm
- print/qpdf
- security/libgcrypt
- security/libgpg-error
- textproc/expat2
- textproc/libxml2
- textproc/libxslt
- textproc/py-pikepdf
- x11-fonts/fontconfig
- x11-fonts/libXft
- x11-toolkits/py-tkinter
- x11-toolkits/tk86
- x11/libX11
- x11/libXScrnSaver
- x11/libXau
- x11/libXdmcp
- x11/libXext
- x11/libXrender
- x11/libxcb
- x11/xorgproto
Configuration
Options name: graphics_img2pdf
| Option | Default | Description |
|---|---|---|
| GUI | on | GUI (Graphical User Interface) support |
- USES
- python shebangfix magick:7,test
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| img2pdf-0.6.3.tar.gz | 120350 | 219518020f5bd242bdc46493941ea3f756f664c2e86f2454721e74353f58cd95 |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.