Skip to content

TIFF images not displayed in browser #146

@jedrazb

Description

@jedrazb

Description

TIFF images embedded in DOCX files are correctly extracted and their MIME type (image/tiff) is recognized, but browsers cannot natively render TIFF format. These images appear as broken image icons.

Current Behavior

TIFF images show as broken/missing image placeholders in the editor.

Expected Behavior

TIFF images should be converted to a browser-compatible format (PNG or JPEG) at load time and displayed correctly.

Technical Notes

  • Recognition: unzip.ts maps .tif/.tiffimage/tiff, imageParser.ts getMimeType() also handles both extensions
  • Missing: No client-side TIFF-to-PNG/JPEG conversion
  • Options: Use a library like utif.js or tiff.js for decoding, then render to canvas and export as PNG data URL
  • Scope: Only affects display — the original TIFF binary should be preserved for roundtrip fidelity

Steps to Reproduce

  1. Open a DOCX containing a TIFF format image
  2. Image area shows broken image icon or blank space

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions