Bug 708567 - pdf_rewrite_images delivers incomplete PNG images
Summary: pdf_rewrite_images delivers incomplete PNG images
Status: UNCONFIRMED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: 1.26.1
Hardware: All All
: P2 normal
Assignee: MuPDF bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-01 17:02 UTC by Jorj
Modified: 2025-06-01 17:02 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jorj 2025-06-01 17:02:11 UTC
PyMuPDF issue: https://github.com/pymupdf/PyMuPDF/issues/4539
Problem file link: https://github.com/pymupdf/PyMuPDF/blob/main/tests/resources/test_3594.pdf

The issue description contains a complete reproducing script. But setting these options values will lead to the result:

options.color_lossless_image_recompress_method = 3
options.color_lossless_image_recompress_quality = "33"
options.color_lossless_image_subsample_method = 0
options.color_lossless_image_subsample_threshold = 100
options.color_lossless_image_subsample_to = 72

Warnings generated indicate incomplete images:

premature end of data in flate filter
... repeated 3 times...