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/.tiff → image/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
- Open a DOCX containing a TIFF format image
- Image area shows broken image icon or blank space
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
unzip.tsmaps.tif/.tiff→image/tiff,imageParser.tsgetMimeType()also handles both extensionsutif.jsortiff.jsfor decoding, then render to canvas and export as PNG data URLSteps to Reproduce