You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
HTML and Markdown conversion fails on a CMYK or truncated image #4680
With fetch_images=True, a single CMYK image in an HTML or Markdown file makes the whole conversion fail with cannot write mode CMYK as PNG, so none of the document's text comes through. A truncated image fails the same way (Truncated File Read).
ImageResourceLoader.create_image_ref passes the image to ImageRef.from_pil without normalize_image_for_png (the helper #4598 added for Word and PowerPoint), and PNG can't store CMYK. Its except catches UnidentifiedImageError, ValueError and others, but not OSError, which is what Pillow raises here and for a truncated file. So the error ends the conversion instead of becoming a warning like the other image errors.
The same image in RGB converts with SUCCESS. Markdown ( with MarkdownBackendOptions(fetch_images=True)) fails the same way.
Activity
ceberam commentedon Oct 8, 2026
Duplicate of #4682