[]
function findImageFormat(fileOrName, defaultImageFormat?): ImageFormatCode;
Find the image format for the file specified by the fileOrName parameter.
File object or file name string
string | ImageFormatCode | File | Uint8Array<ArrayBuffer>
Optional.