Skip to content

Passing unrecognized formats to gdImageGd2 results in corrupted files #289

Closed
@cmb69

Description

@cmb69

The code to write GD2 images checks for unrecognized fmts and adjusts them to reasonable values. However, for truecolor images the then correct value would be further increased by 2, resulting in an incorrect format being written to the file header.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions