Skip to content

Add support for other bit depth for imagecreatefrombmp #11366

@hoit

Description

@hoit

Description

Hello,

In my application, i need to load different kind of bitmaps to apply some checks on it.
I see that imagecreatefrombmp works correctly for bitmap file which have indexed color with 8 bit depth only.

The function return false if the image is :

  • not in indexed color mode
  • in index color mode with 4 bpp (16 colors).

I saw that some libs are able to manage it or found some pieces of code to do it but it would be great to add it natively !

Is it possible ?
Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions