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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user