Port details |
- py-img2pdf Convert images to PDF via direct JPEG inclusion
- 0.3.5 graphics
=1 Version of this port present on the latest quarterly branch. - Maintainer: kai@FreeBSD.org
 - Port Added: 2019-07-02 07:20:10
- Last Update: 2023-01-11 15:58:34
- Commit Hash: 77d6847
- People watching this port, also watch:: scrot, v4l-utils, bash-completion, ncftp, tmux
- Also Listed In: python
- License: LGPL3+
- 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.
¦ ¦ ¦ ¦ 
- 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 = 1588236899
SHA256 (img2pdf-0.3.5.tar.gz) = be676b5afebd3c55eb3f3edd9af1ff3e599fef89e91fbf2290b0259da58f1e19
SIZE (img2pdf-0.3.5.tar.gz) = 83520
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-pdfrw>0 : textproc/py-pdfrw@py39
- python3.9 : lang/python39
- Runtime dependencies:
-
- py39-pillow>=7.0.0 : graphics/py-pillow@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:
- No options to configure
- Options name:
- graphics_py-img2pdf
- USES:
- python:3.5+
- 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.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 |