WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
257110
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
Add attachment
proposed patch, testcase, etc.
Said Abou-Hallawa
Comment 1
2023-05-21 22:52:42 PDT
rdar://107625991
Said Abou-Hallawa
Comment 2
2023-05-21 23:22:18 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/14163
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug