Port details |
- py-img2pdf Convert images to PDF via direct JPEG inclusion
- 0.5.1_2 graphics =3 0.5.1_2Version of this port present on the latest quarterly branch.
- Maintainer: kai@FreeBSD.org
- 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:: dmenu, bat, autoconf, jetbrains-mono, py39-borgmatic
- 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.
- ¦ ¦ ¦ ¦
- 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>)
- 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):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- Test dependencies:
-
- py39-packaging>0 : devel/py-packaging@py39
- py39-scipy>0 : science/py-scipy@py39
- exiftool : graphics/p5-Image-ExifTool
- jpegtopnm : graphics/netpbm
- pdftocairo : graphics/poppler-utils
- py39-pytest>=7,1 : devel/py-pytest@py39
- python3.9 : lang/python39
- ImageMagick6>=6 : graphics/ImageMagick6
- Runtime dependencies:
-
- py39-pikepdf>0 : textproc/py-pikepdf@py39
- py39-pillow>0 : graphics/py-pillow@py39
- py39-tkinter>0 : x11-toolkits/py-tkinter@py39
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- This port is required by:
- for Run
-
- 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:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
0.5.1_2 01 Mar 2024 23:56:15 |
Tobias C. Berner (tcberner) |
graphics/poppler: bump consumers of graphics/poppler
Bump after rupdate in 478df79a3071b399f648107456cf371587e84a3f |
0.5.1_1 03 Jan 2024 07:18:40 |
Tobias C. Berner (tcberner) |
graphics/poppler: bump revision of consumers |
0.5.1 20 Dec 2023 10:52:13 |
Kai Knoblich (kai) |
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 |
Kai Knoblich (kai) |
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 |
Rene Ladan (rene) |
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 |
Tobias C. Berner (tcberner) |
graphics/poppler: bump dependencies |
0.4.4_2 30 Apr 2023 11:10:42 |
Felix Palmen (zirias) |
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 |
Felix Palmen (zirias) |
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 |
Tobias C. Berner (tcberner) |
graphics/poppler: bump consumers after update to 23.04
graphics/poppler was updated in 06339c451266f5843e53bd6406c81a89eedd4ab1 |
0.4.4 31 Mar 2023 05:12:45 |
Kai Knoblich (kai) |
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 |
Dmitry Marakasov (amdmi3) |
*/*: rename CHEESESHOP to PYPI in MASTER_SITES
PR: 267994
Differential revision: D37518
Approved by: bapt |
07 Sep 2022 21:58:51 |
Stefan Eßer (se) |
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 |
Stefan Eßer (se) |
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 ) |
0.3.5 07 Apr 2021 08:09:01 |
Mathieu Arnold (mat) |
One more small cleanup, forgotten yesterday.
Reported by: lwhsu |
0.3.5 06 Apr 2021 14:31:07 |
Mathieu Arnold (mat) |
Remove # $FreeBSD$ from Makefiles. |
0.3.5 30 Apr 2020 10:21:34 |
kai |
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 |
antoine |
Convert the tree to use PY_PILLOW
With hat: portmgr
Originally submitted by: kai |
0.3.3_1 24 Feb 2020 11:36:16 |
kai |
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 ) |
0.3.3 02 Jul 2019 07:19:56 |
kai |
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 |