Skip to content

MinIsWhite GeoTIFF inversion is inconsistent across read backends #1797

@brendancol

Description

@brendancol

Describe the bug

Photometric=MinIsWhite inversion is only applied in the local eager reader. HTTP, remote dask fast-path, and GPU reads do not appear to apply the same inversion, so the same single-band TIFF can return inverted values on one backend and raw values on another.

Expected behavior

All read backends should return the same values for MinIsWhite grayscale TIFFs. The inversion should be shared or applied consistently after decode.

Screenshots

Not applicable.

Desktop

Not applicable.

Smartphone

Not applicable.

Additional context

The local eager branch in xrspatial/geotiff/_reader.py handles MinIsWhite after decode. Equivalent handling is missing from the HTTP early return path and GPU read path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend-coverageAdding missing dask/cupy/dask+cupy backend supportbugSomething isn't workinggpuCuPy / CUDA GPU support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions