Bug 257110

Summary: Implement a reliable way to get the image type from a mime type
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: ImagesAssignee: Said Abou-Hallawa <sabouhallawa>
Status: NEW    
Severity: Normal CC: sabouhallawa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Said Abou-Hallawa
Reported 2023-05-21 22:52:04 PDT
UTTypeCreatePreferredIdentifierForTag() is used to get the image type from the mime type only on macOS. On iOS, utiFromImageBufferMIMEType() handles only three image formats manually: png, jpeg and gif. On macOS and with user created with "sysadminctl", UTTypeCreatePreferredIdentifierForTag() fails to return valid image type for the mime type "image/png".
Attachments
Said Abou-Hallawa
Comment 1 2023-05-21 22:52:42 PDT
Said Abou-Hallawa
Comment 2 2023-05-21 23:22:18 PDT
Note You need to log in before you can comment on or make changes to this bug.