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
Port details
py-img2pdf Convert images to PDF via direct JPEG inclusion
0.5.1_2 graphics on this many watch lists=1 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.5.1_2Version 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: 2024-03-01 23:56:15
Commit Hash: d2f834b
People watching this port, also watch:: scrot, v4l-utils, bash-completion, ncftp, tmux
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 py39-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 py39-img2pdf listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py39-img2pdf
Package flavors (<flavor>: <package>)
  • py39: py39-img2pdf
distinfo:
TIMESTAMP = 1702988827 SHA256 (img2pdf-0.5.1.tar.gz) = 73847e47242f4b5bd113c70049e03e03212936c2727cd2a8bf564229a67d0b95 SIZE (img2pdf-0.5.1.tar.gz) = 104241

Packages (timestamps in pop-ups are UTC):
py311-img2pdf
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest0.5.1_20.5.1_2--0.5.1_2---
FreeBSD:13:quarterly-0.5.1_2--0.5.1_2---
FreeBSD:14:latest0.5.1_20.5.1_2--0.5.1_2---
FreeBSD:14:quarterly-0.5.1_2--0.5.1_2---
FreeBSD:15:latest0.5.1_20.5.1_2n/a-n/a---
 
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:quarterly0.5.1_2-----0.5.1_10.5.1_1
FreeBSD:14:latest-------0.4.4_3
FreeBSD:14:quarterly0.5.1_2-----0.5.1_10.5.1_1
FreeBSD:15:latest--n/a-n/a-0.5.1_1-
 
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py39-setuptools>=63.1.0 : devel/py-setuptools@py39
  2. python3.9 : lang/python39
Test dependencies:
  1. py39-packaging>0 : devel/py-packaging@py39
  2. py39-scipy>0 : science/py-scipy@py39
  3. exiftool : graphics/p5-Image-ExifTool
  4. jpegtopnm : graphics/netpbm
  5. pdftocairo : graphics/poppler-utils
  6. py39-pytest>=7,1 : devel/py-pytest@py39
  7. python3.9 : lang/python39
  8. ImageMagick6>=6 : graphics/ImageMagick6
Runtime dependencies:
  1. py39-pikepdf>0 : textproc/py-pikepdf@py39
  2. py39-pillow>0 : graphics/py-pillow@py39
  3. py39-tkinter>0 : x11-toolkits/py-tkinter@py39
  4. py39-setuptools>=63.1.0 : devel/py-setuptools@py39
  5. python3.9 : lang/python39
This port is required by:
for Run
  1. textproc/py-ocrmypdf

Configuration Options:
===> The following configuration options are available for py39-img2pdf-0.5.1_2: GUI=on: GUI (Graphical User Interface) support ===> Use 'make config' to modify these settings
Options name:
graphics_py-img2pdf
USES:
python shebangfix magick:6,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.

Number of commits found: 19

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.5.1_2
01 Mar 2024 23:56:15
commit hash: d2f834ba51ec40ef69d7e9cc117db32fa572fddbcommit hash: d2f834ba51ec40ef69d7e9cc117db32fa572fddbcommit hash: d2f834ba51ec40ef69d7e9cc117db32fa572fddbcommit hash: d2f834ba51ec40ef69d7e9cc117db32fa572fddb files touched by this commit
Tobias C. Berner (tcberner) search for other commits by this committer
graphics/poppler: bump consumers of graphics/poppler

Bump after rupdate in 478df79a3071b399f648107456cf371587e84a3f
0.5.1_1
03 Jan 2024 07:18:40
commit hash: 672f0463c70387a32340a83f7ccce244f16f6743commit hash: 672f0463c70387a32340a83f7ccce244f16f6743commit hash: 672f0463c70387a32340a83f7ccce244f16f6743commit hash: 672f0463c70387a32340a83f7ccce244f16f6743 files touched by this commit
Tobias C. Berner (tcberner) search for other commits by this committer
graphics/poppler: bump revision of consumers
0.5.1
20 Dec 2023 10:52:13
commit hash: c6d93fa389b3f941da114cb8fe3e5a66fc104baccommit hash: c6d93fa389b3f941da114cb8fe3e5a66fc104baccommit hash: c6d93fa389b3f941da114cb8fe3e5a66fc104baccommit hash: c6d93fa389b3f941da114cb8fe3e5a66fc104bac files touched by this commit
Kai Knoblich (kai) search for other commits by this committer
graphics/py-img2pdf: Update to 0.5.1

Changelog:

https://github.com/josch/img2pdf/blob/0.5.1/CHANGES.rst
0.5.0
31 Oct 2023 12:33:15
commit hash: 608775544e67d0e623c9e7cdc149f309624ca654commit hash: 608775544e67d0e623c9e7cdc149f309624ca654commit hash: 608775544e67d0e623c9e7cdc149f309624ca654commit hash: 608775544e67d0e623c9e7cdc149f309624ca654 files touched by this commit
Kai Knoblich (kai) search for other commits by this committer
graphics/py-img2pdf: Update to 0.5.0

Changelog:

https://github.com/josch/img2pdf/blob/0.5.0/CHANGES.rst
0.4.4_3
27 Jun 2023 19:34:34
commit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacb files touched by this commit
Rene Ladan (rene) search for other commits by this committer
all: remove explicit versions in USES=python for "3.x+"

The logic in USES=python will automatically convert this to 3.8+ by
itself.

Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.

finance/quickfix: mark BROKEN with PYTHON

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp  -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
          ^~~~~~~~~~
1 warning and 1 error generated.

Reviewed by:	portmgr, vishwin, yuri
Differential Revision:	<https://reviews.freebsd.org/D40568>
0.4.4_3
14 May 2023 05:58:14
commit hash: edbe24d784c93c2986306a2301fc945311d4f8f4commit hash: edbe24d784c93c2986306a2301fc945311d4f8f4commit hash: edbe24d784c93c2986306a2301fc945311d4f8f4commit hash: edbe24d784c93c2986306a2301fc945311d4f8f4 files touched by this commit
Tobias C. Berner (tcberner) search for other commits by this committer
graphics/poppler: bump dependencies
0.4.4_2
30 Apr 2023 11:10:42
commit hash: a6bb2f8c5e3051b7d2de9a37cecb40f1cdb662b5commit hash: a6bb2f8c5e3051b7d2de9a37cecb40f1cdb662b5commit hash: a6bb2f8c5e3051b7d2de9a37cecb40f1cdb662b5commit hash: a6bb2f8c5e3051b7d2de9a37cecb40f1cdb662b5 files touched by this commit
Felix Palmen (zirias) search for other commits by this committer
Mk/Uses/magick.mk: Bump all consumers

Bump all consumers of ImageMagick ports after flavorizing them.

Approved by:	tcberner (mentor, implicit)
0.4.4_1
30 Apr 2023 11:10:41
commit hash: 42ac413c8c8a8f900eefab5c30506748cea183f7commit hash: 42ac413c8c8a8f900eefab5c30506748cea183f7commit hash: 42ac413c8c8a8f900eefab5c30506748cea183f7commit hash: 42ac413c8c8a8f900eefab5c30506748cea183f7 files touched by this commit
Felix Palmen (zirias) search for other commits by this committer
graphics/py-img2pdf: Convert to USES=magick

Approved by:		kai (maintainer), tcberner (mentor, implicit)
Differential Revision:	https://reviews.freebsd.org/D39605
0.4.4_1
20 Apr 2023 04:07:00
commit hash: 32edee2a202f6b2356da77e54b231cb5783f5dc2commit hash: 32edee2a202f6b2356da77e54b231cb5783f5dc2commit hash: 32edee2a202f6b2356da77e54b231cb5783f5dc2commit hash: 32edee2a202f6b2356da77e54b231cb5783f5dc2 files touched by this commit
Tobias C. Berner (tcberner) search for other commits by this committer
graphics/poppler: bump consumers after update to 23.04

graphics/poppler was updated in 06339c451266f5843e53bd6406c81a89eedd4ab1
0.4.4
31 Mar 2023 05:12:45
commit hash: 47216afd723b71d9adc8d1a25241fd71a0de67cccommit hash: 47216afd723b71d9adc8d1a25241fd71a0de67cccommit hash: 47216afd723b71d9adc8d1a25241fd71a0de67cccommit hash: 47216afd723b71d9adc8d1a25241fd71a0de67cc files touched by this commit
Kai Knoblich (kai) search for other commits by this committer
graphics/py-img2pdf: Update to 0.4.4

* Add GUI option to reflect the requirements given in setup.py and
  to make use of the graphical frontend script.

* Simplify "do-test" target by switching to USE_PYTHON=pytest.

Changelog since 0.3.5 :

https://gitlab.mister-muffin.de/josch/img2pdf/src/tag/0.4.4/CHANGES.rst
0.3.5
11 Jan 2023 15:58:34
commit hash: 77d68471aded6907dbbcb5ef50d557e4c69db656commit hash: 77d68471aded6907dbbcb5ef50d557e4c69db656commit hash: 77d68471aded6907dbbcb5ef50d557e4c69db656commit hash: 77d68471aded6907dbbcb5ef50d557e4c69db656 files touched by this commit
Dmitry Marakasov (amdmi3) search for other commits by this committer
*/*: rename CHEESESHOP to PYPI in MASTER_SITES

PR:			267994
Differential revision:	D37518
Approved by:		bapt
07 Sep 2022 21:58:51
commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
0.3.5
07 Sep 2022 21:10:59
commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
0.3.5
07 Apr 2021 08:09:01
commit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455c files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
0.3.5
06 Apr 2021 14:31:07
commit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344eb files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
0.3.5
30 Apr 2020 10:21:34
Revision:533422Original commit files touched by this commit
kai search for other commits by this committer
graphics/py-img2pdf: Update to 0.3.5

* Drop Python 2.7 support because it was removed with this version.

Changelog:

https://gitlab.mister-muffin.de/josch/img2pdf/blob/0.3.5/CHANGES.rst
0.3.3_1
24 Mar 2020 19:54:57
Revision:529063Original commit files touched by this commit
antoine search for other commits by this committer
Convert the tree to use PY_PILLOW

With hat:	portmgr
Originally submitted by:	kai
0.3.3_1
24 Feb 2020 11:36:16
Revision:526962Original commit files touched by this commit
kai search for other commits by this committer
graphics/py-pillow: Update to 7.0.0

* Repo-Copy the Pillow 6.2.2 release to graphics/py-pillow6 to retain
  backwards compatibility for Python 2 consumers as the Pillow 7.0.0 release
  dropped the support for Python 2.

* Apply conditional statements to use either Pillow 7.x or Pillow 6.x for
  consumers that can be built for Python 2 or newer.

* Exceptions are ports that can be built only for either Python 2 or
  Python 3.  For the first case, consumers are just assigned to the
  repo-copied graphics/py-pillow6.

* Also remove Pillow from BUILD_DEPENDS of math/py-PyWavelets as it is not
  listed in setup.py as a build dependency [1] and relax the version
(Only the first 15 lines of the commit message are shown above View all of this commit message)
0.3.3
02 Jul 2019 07:19:56
Revision:505661Original commit files touched by this commit
kai search for other commits by this committer
New port: graphics/py-img2pdf

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.

WWW: https://gitlab.mister-muffin.de/josch/img2pdf

Number of commits found: 19