Disable JPEG passthrough for Ghostscript 9.23

Seems to corrupt JPEGs involved in image masks?
This commit is contained in:
James R. Barlow
2018-04-17 16:31:03 -07:00
parent 5fde214290
commit 076363d78e
+5
View File
@@ -132,6 +132,11 @@ def generate_pdfa(pdf_pages, output_file, compression, log,
# git commit fe1c025d.
strategy = 'RGB' if version() >= '9.19' else '/RGB'
if version() == '9.23':
# 9.23: JPEG passthrough broken for image masks?
# https://bugs.ghostscript.com/show_bug.cgi?id=699216
compression_args.append('-dPassThroughJPEGImages=false')
with NamedTemporaryFile(delete=True) as gs_pdf:
args_gs = [
"gs",