Skip to content

Return finfo media type in GD mediaTypeByBinary() - #1557

Merged
olivervogel merged 1 commit into
Intervention:developfrom
lazerg:bugfix/gd-finfo-media-type
Oct 30, 2026
Merged

olivervogel merged 1 commit into
Intervention:developfrom
lazerg:bugfix/gd-finfo-media-type

Conversation

@lazerg

@lazerg lazerg commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

The return before parseMediaTypeOrFail() in the finfo branch got lost in e3c5ed6, so the finfo result was checked and then dropped and the media type always came from getimagesizefromstring(). Data that finfo recognises but getimagesizefromstring() can't parse failed with an ImageDecoderException again. This puts the return back, same as mediaTypeByFilePath() does.

Fixes #1556

@olivervogel
olivervogel merged commit 3a47838 into Intervention:develop Oct 30, 2026
8 checks passed
@olivervogel

Copy link
Copy Markdown
Member

Thanks. Realeased in 4.4.1

1 similar comment
@olivervogel

Copy link
Copy Markdown
Member

Thanks. Realeased in 4.4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GD decoder discards the finfo media type in mediaTypeByBinary() since 4.4.0

2 participants