[]
        
(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<ArrayBufferLike>

defaultImageFormat

ImageFormatCode = ImageFormatCode.Default

Optional.

Returns

ImageFormatCode