getImageSourceFormatForMimeType Function
Get the ImageSourceFormat corresponding to the mime type string, or undefined if the string does not identify a supported ImageSourceFormat.
getImageSourceFormatForMimeType(mimeType: string): ImageSourceFormat | undefined
extensions
Parameter | Type | Description |
---|---|---|
mimeType | string |
Returns - ImageSourceFormat | undefined
Defined in
- core/frontend/src/ImageUtil.ts Line 183
Last Updated: 20 June, 2023