[]
        
(Showing Draft Content)

findImageFormat

Function: findImageFormat()

function findImageFormat(fileOrName, defaultImageFormat?): ImageFormatCode;

Find the image format for the file specified by the fileOrName parameter.

Parameters

fileOrName

File object or file name string

string | ImageFormatCode | File | Uint8Array<ArrayBuffer>

defaultImageFormat?

ImageFormatCode

Optional.

Returns

ImageFormatCode