Compare commits

..

2 commits

3 changed files with 28 additions and 17 deletions

View file

@ -2,6 +2,16 @@
CHANGES
=======
0.5.0 (2023-10-28)
------------------
- support MIFF for 16 bit CMYK input
- accept pathlib.Path objects as input
- don't store RGB ICC profiles from bilevel or grayscale TIFF, PNG and JPEG
- thumbnails are no longer included by default and --include-thumbnails has to
be used if you want them
- support for pikepdf (>= 6.2.0)
0.4.4 (2022-04-07)
------------------

View file

@ -1,7 +1,7 @@
import sys
from setuptools import setup
VERSION = "0.4.4"
VERSION = "0.5.0"
INSTALL_REQUIRES = (
"Pillow",

View file

@ -62,7 +62,7 @@ try:
except ImportError:
have_pikepdf = False
__version__ = "0.4.4"
__version__ = "0.5.0"
default_dpi = 96.0
papersizes = {
"letter": "8.5inx11in",
@ -1489,10 +1489,8 @@ def get_imgmetadata(
with io.BytesIO(iccp) as f:
prf = ImageCms.ImageCmsProfile(f)
if prf.profile.xcolor_space not in ('GRAY'):
logger.warning(
"Ignoring non-GRAY ICC profile in Grayscale JPG"
)
if prf.profile.xcolor_space not in ("GRAY"):
logger.warning("Ignoring non-GRAY ICC profile in Grayscale JPG")
iccp = None
logger.debug("width x height = %dpx x %dpx", imgwidthpx, imgheightpx)
@ -4094,6 +4092,9 @@ RGB.""",
% Image.MAX_IMAGE_PIXELS,
)
if sys.platform == "win32":
pass
else:
outargs.add_argument(
"--pdfa",
nargs="?",