Skip to content

Kingfisher isn't able to render certain images on Mac that are 10 bits per component #2447

@BobbyRohweder

Description

@BobbyRohweder

Certain images never render on macOS.

Having an image with with 10 bits per component always returns nil here

bitsPerSample: cgImage?.bitsPerComponent ?? 8,

NSBitmapImageRep bitsPerSample only supports values 1, 2, 4, 8, 12, or 16 according to the docs:
https://developer.apple.com/documentation/appkit/nsbitmapimagerep/init(bitmapdataplanes:pixelswide:pixelshigh:bitspersample:samplesperpixel:hasalpha:isplanar:colorspacename:bitmapformat:bytesperrow:bitsperpixel:)

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