Bug 270180
| Summary: | [AVIF Downlevels] Allow pixi property to be missing in AVIF images | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Said Abou-Hallawa <sabouhallawa> |
| Component: | Images | Assignee: | Said Abou-Hallawa <sabouhallawa> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | sabouhallawa, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Said Abou-Hallawa
The avif.h has this comment about AVIF_STRICT_PIXI_REQUIRED
// Requires the PixelInformationProperty ('pixi') be present in AV1 image items. libheif v1.11.0
// or older does not add the 'pixi' item property to AV1 image items. If you need to decode AVIF
// images encoded by libheif v1.11.0 or older, be sure to disable this bit. (This issue has been
// corrected in libheif v1.12.0.)
AVIF_STRICT_PIXI_REQUIRED = (1 << 0),
Some pages like https://iad.anm.co.uk/test_image1.html may still have their images created with libheif v1.11.0 or older.
The macOS Ventura and Sonoma, Chrome and FireFox can show these images without a problem. On macOS Monterey we use the open source libavif with the maximum strictness. Decoding these images fail because AVIF_STRICT_PIXI_REQUIRED is enabled. So we need to remove this restriction to be compatible with newer OSs and other browsers.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Said Abou-Hallawa
rdar://116808395
Said Abou-Hallawa
Pull request: https://github.com/WebKit/WebKit/pull/25183
EWS
Committed 275608@main (345ed1bf70a2): <https://commits.webkit.org/275608@main>
Reviewed commits have been landed. Closing PR #25183 and removing active labels.