API Reference > imodeljs-frontend > Rendering > getImageSourceFormatForMimeType 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 Parameter Type Description mimeType string Returns - ImageSourceFormat | undefined Defined in core/frontend/src/ImageUtil.ts Line 179 Last Updated: 11 June, 2024