img2pdf: update to 0.4.3.

This commit is contained in:
Philipp David 2021-10-25 08:42:26 +02:00 committed by Érico Nogueira Rolim
parent a7b1411e93
commit 9f5298499e
3 changed files with 19 additions and 39 deletions

View file

@ -0,0 +1,15 @@
--- a/src/img2pdf.py
+++ b/src/img2pdf.py
@@ -3439,10 +3439,10 @@ RGB.""",
outargs.add_argument(
"--pdfa",
nargs="?",
- const="/usr/share/color/icc/sRGB.icc",
+ const="/usr/share/color/icc/colord/sRGB.icc",
default=None,
help="Output a PDF/A-1b compliant document. By default, this will "
- "embed /usr/share/color/icc/sRGB.icc as the color profile.",
+ "embed /usr/share/color/icc/colord/sRGB.icc as the color profile.",
)
sizeargs = parser.add_argument_group(

View file

@ -1,35 +0,0 @@
--- a/src/img2pdf.py
+++ b/src/img2pdf.py
@@ -3439,10 +3439,10 @@ RGB.""",
outargs.add_argument(
"--pdfa",
nargs="?",
- const="/usr/share/color/icc/sRGB.icc",
+ const="/usr/share/color/icc/colord/sRGB.icc",
default=None,
help="Output a PDF/A-1b compliant document. By default, this will "
- "embed /usr/share/color/icc/sRGB.icc as the color profile.",
+ "embed /usr/share/color/icc/colord/sRGB.icc as the color profile.",
)
sizeargs = parser.add_argument_group(
--- a/src/img2pdf_test.py
+++ b/src/img2pdf_test.py
@@ -304,7 +304,7 @@ def compare(im1, im2, exact, icc, cmyk):
else:
iccargs = []
if icc:
- iccargs = ["-profile", "/usr/share/color/icc/sRGB.icc"]
+ iccargs = ["-profile", "/usr/share/color/icc/colord/sRGB.icc"]
psnr = subprocess.run(
["compare"]
+ iccargs
@@ -424,7 +424,7 @@ def compare_pdfimages_png(tmpdir, img, pdf, exact=True, icc=False):
"PSNR",
"(",
"-profile",
- "/usr/share/color/icc/ghostscript/srgb.icc",
+ "/usr/share/color/icc/colord/sRGB.icc",
"-depth",
"8",
str(img),

View file

@ -1,7 +1,7 @@
# Template file for 'img2pdf'
pkgname=img2pdf
version=0.4.1
revision=2
version=0.4.3
revision=1
build_style=python3-module
hostmakedepends="python3-pikepdf python3-setuptools"
depends="colord python3-pdfrw python3-pikepdf python3-Pillow python3-tkinter"
@ -10,5 +10,5 @@ maintainer="Philipp David <pd@3b.pm>"
license="GPL-3.0-or-later"
homepage="https://gitlab.mister-muffin.de/josch/img2pdf"
distfiles="${PYPI_SITE}/i/img2pdf/img2pdf-${version}.tar.gz"
checksum=38a1229ca84b211d7782d1d65ad7251a9781bf24f6f6497c738c755fcfed5552
make_check=no # depends on ImageMagick6
checksum=8e51c5043efa95d751481b516071a006f87c2a4059961a9ac43ec238915de09f
make_check=no # need to patch out some bitdepth checks