NEW257110
Implement a reliable way to get the image type from a mime type
https://bugs.webkit.org/show_bug.cgi?id=257110
Summary Implement a reliable way to get the image type from a mime type
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.