Skip to content

TIFFs render as a black screen in DocumentViewer (other viewers display them fine) #19

@bahaAbualkibash

Description

@bahaAbualkibash

Summary
Most TIFF images I open in DocumentUltimate’s DocumentViewer render as a black screen (no content), while the same files display correctly in other viewers from different vendors. This suggests the problem is in the viewer/decoder pipeline rather than the files themselves.

Environment

  • DocumentUltimate version: 7.6.0
  • .NET runtime: .NET 9
  • App type: ASP.NET Core
  • OS (server): Windows Server 2019
  • Browsers tested: Chrome, Edge
  • Hosting: IIS

If helpful, here’s the minimal flow I’m using (simplified):

  • Open TIFF as a stream/byte[] from storage
  • Provide it to DocumentViewer as the document source
  • No special options or transformations applied

Expected Behavior

  • The TIFF pages should render normally in the viewer (as they do in other viewers).

Actual Behavior

  • The main canvas renders as a black screen.
  • Thumbnails are also black in some cases.
  • No user-visible error is shown in the UI.

Notes & Clues

  • The same TIFFs open correctly in other tools/viewers (e.g., IrfanView, Windows Photos, Nutrient SDK viewer, Doconut).

  • With some problematic files, I see warnings like (from image/decoder logs):

    • JPEGPreDecode: Warning, Improper JPEG strip/tile size, expected 1700x2377, got 566x2377
    • JPEGPreDecode: Improper JPEG component count
  • These files appear to be classic TIFF (not BigTIFF). Some have JPEG-in-TIFF (possibly Old-style JPEG / OJPEG, Compression=6) and/or YCbCr photometric interpretation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions