src/img2pdf.py: reformat with black

pull/180/head
parent 5cd0918d50
commit 7f0bf47ff3
Signed by: josch
GPG Key ID: F2CBA5C78FBD83E1

@ -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="?",

Loading…
Cancel
Save