Skip to content

isImageFile

Checks if a given file is an image.

Import:

import { isImageFile } from 'obsidian-dev-utils/blob';

Signature:

function isImageFile(file: File): boolean

Parameters:

ParameterTypeDescription
fileFileThe file to check.

Returns: booleantrue if the file is an image, false otherwise.