Update GS JPEG corruption warning for 10.7.0+

The JPEG truncation bug (1-15 bytes) persists in Ghostscript 10.7.0.
Update the warning message to show the actual GS version instead of
hardcoding "10.6.x", and remove the stale date reference. Also make
the test warning filter match the new message format.
This commit is contained in:
James R. Barlow
2026-04-04 01:59:57 -07:00
parent 7fdeeb3635
commit 83c04e6399
2 changed files with 7 additions and 10 deletions
+4 -4
View File
@@ -131,10 +131,10 @@ def check_options(options):
)
if gs_version >= Version('10.6.0'):
log.warning(
"Ghostscript 10.6.x contains JPEG encoding errors that may corrupt "
"images. OCRmyPDF will attempt to mitigate, but this version is "
"strongly not recommended. Please upgrade to a newer version. "
"As of 2025-12, 10.6.0 is the latest version of Ghostscript."
"Ghostscript %s contains JPEG encoding errors that may corrupt "
"images. OCRmyPDF will attempt to mitigate, but versions 10.6.0+ "
"are strongly not recommended until this is fixed upstream.",
gs_version,
)
if options.output_type == 'pdfa':
options.output_type = 'pdfa-2'