teapub
Preparing search index...
getImageMimeType
Function getImageMimeType
getImageMimeType
(
href
:
string
,
)
:
"image/png"
|
"image/jpeg"
|
"image/gif"
|
"image/svg+xml"
get the image mime type of a url
Throws an Error is if extension doesn't correspond to an
ImageMime
.
Parameters
href
:
string
Returns
"image/png"
|
"image/jpeg"
|
"image/gif"
|
"image/svg+xml"
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
teapub
Loading...
get the image mime type of a url
Throws an Error is if extension doesn't correspond to an ImageMime.