notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Port details
py-img2pdf Convert images to PDF via direct JPEG inclusion
0.3.3 graphics on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port Version of this port present on the latest quarterly branch.
Maintainer: search for ports maintained by this maintainer
Port Added: 2019-07-02 07:20:10
Last Update: 2019-07-02 08:19:56
SVN Revision: 505661
Also Listed In: python
License: LGPL3+
SVNWeb : Homepage

There is no configure plist information for this port.

Dependency lines:
  • py36-img2pdf>0:graphics/py-img2pdf
To install the port: cd /usr/ports/graphics/py-img2pdf/ && make install clean
To add the package: pkg install py36-img2pdf
PKGNAME: py36-img2pdf
Package flavors (<flavor>: <package>)
  • py36: py36-img2pdf
  • py27: py27-img2pdf

NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py36-setuptools>0 : devel/py-setuptools@py36
  2. python3.6 : lang/python36
Runtime dependencies:
  1. py36-pillow>0 : graphics/py-pillow@py36
  2. py36-setuptools>0 : devel/py-setuptools@py36
  3. python3.6 : lang/python36
This port is required by:
for Run
  1. textproc/py-ocrmypdf

Configuration Options


Master Sites:
Notes from UPDATING
These upgrade notes are taken from /usr/ports/UPDATING
  • 2017-11-30
    Affects: */py*
      Ports using Python via USES=python are now flavored.  All the py3-* ports
      have been removed and folded into their py-* master ports.
      People using Poudriere 3.2+ and binary packages do not have to do anything.
      For other people, to build the Python 3.6 version of, for example,
      databases/py-gdbm, you need to run:
        # make FLAVOR=py36 install

Number of commits found: 1

Commit History - (may be incomplete: see SVNWeb link above for full details)
02 Jul 2019 07:19:56
Original commit files touched by this commit  0.3.3
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.


Number of commits found: 1

User Login
Create account

Servers and bandwidth provided by
New York Internet, iXsystems, and RootBSD

This site
What is FreshPorts?
About the authors
How big is it?
The latest upgrade!

Enter Keywords:

Latest Vulnerabilities
mod_perl2Oct 09
xpdfOct 06
xpdf3Oct 06
xpdf4Oct 06
unboundOct 03
cactiOct 02
gitlab-ceOct 02
gitlab-ceOct 02
ruby24Oct 02
ruby25Oct 02
mongodb34Sep 30
mongodb34Sep 30
mongodb36Sep 30
mongodb36Sep 30
mongodb40Sep 30

12 vulnerabilities affecting 34 ports have been reported in the past 14 days

* - modified, not new

All vulnerabilities

Last updated:
2019-10-11 18:37:07

Deleted ports
Sanity Test Failures

NEW Graphs (Javascript)

Calculated hourly:
Port count 37992
Broken 398
Deprecated 443
Ignore 664
Forbidden 3
Restricted 160
Vulnerable 29
Expired 7
Set to expire 414
Interactive 0
new 24 hours 4
new 48 hours10
new 7 days28
new fortnight89
new month230

Servers and bandwidth provided by
New York Internet, iXsystems, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2019 Dan Langille. All rights reserved.