Bug 274623 - P3 colors not shown if an AVIF file is opened directly
Summary: P3 colors not shown if an AVIF file is opened directly
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: Safari 17
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-05-23 15:27 PDT by yann
Modified: 2024-05-24 11:11 PDT (History)
4 users (show)

See Also:


Attachments
JPEG version: colors are OK (2.14 MB, image/jpeg)
2024-05-23 15:27 PDT, yann
no flags Details
AVIF: colors are not ok (222.61 KB, image/avif)
2024-05-23 15:28 PDT, yann
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description yann 2024-05-23 15:27:12 PDT
Created attachment 471489 [details]
JPEG version: colors are OK

An AVIF image opened directly into Safari is displayed with SDR colors instead of HDR if it has a P3 Display ICC profile.
If the same file is in a web page (with an img tag), the colors are OK.

This is not a big problem, until you try to fix an ICC bug in you image processing workflow, and check the result by drag'n'dropping the files in a Safari window :-/

The AVIF version has been generated with Imagemagick with no option (convert xxx.jpg xxx.avif), the photo has been taken with an iPhone XS (resized with Preview/EXIF data have been stripped using exiftool).
Comment 1 yann 2024-05-23 15:28:25 PDT
Created attachment 471490 [details]
AVIF: colors are not ok
Comment 2 Radar WebKit Bug Importer 2024-05-24 11:11:45 PDT
<rdar://problem/128691379>