@unikue/ts-lang-utils
    Preparing search index...

    Function detectDimension

    Utilities for image

    David Hsing

    • Read and detect the dimension of the given file

      Parameters

      • Optionalfile: File

        The file to inspect

      • Optionalresolve: (width?: number, height?: number) => void

        The callback function to execute when the file read success

      • Optionalreject: (ev?: ProgressEvent<FileReader> | ErrorEvent) => void

        The callback function to execute when the file read failure

      Returns void

      David Hsing