fetchLocalImage( image ) → Promise
Creates a promise which fetches the image local source (base64 or blob) and returns as a
image : Element
Image which source to fetch.
A promise which resolves when image source is fetched and converted to
Fileinstance. It resolves with object holding initial image element (as
image) and its file source (as
file). If the
fileattribute is null, it means fetching failed.
isImageType( file ) → Boolean
Checks if a given file is an image.
file : File
isLocalImage( node ) → Boolean