Skip to content

fix(image): recognize HEIF files with heix brand - #170

Open
mingmingtsao wants to merge 1 commit into
h2non:masterfrom
mingmingtsao:cmmdev/fix-heix-detection
Open

mingmingtsao wants to merge 1 commit into
h2non:masterfrom
mingmingtsao:cmmdev/fix-heix-detection

Conversation

@mingmingtsao

@mingmingtsao mingmingtsao commented Nov 17, 2026 •

Copy link
Copy Markdown

Sony HIF files with the heix major brand currently return Unknown from Match. This change recognizes heix as either the major brand or a compatible brand under mif1/msf1, while preserving the existing image/heif MIME value.

Fixes #169

Validation: go test ./... passes with Go 1.23.11. Regression tests cover the ftyp boxes from two Sony HIF samples, compatible-brand matching, existing heic detection, MP4/AVIF, heix outside brand fields, and truncated input. The tests contain no original image content or image metadata.

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.

HEIF: Sony HIF files with the heix brand are not recognized

1 participant