Optional
file: Filethe file to inspect
Optional
resolve: (width?: number, height?: number) => voidthe callback function to execute when the file
read success
Optional
reject: (ev?: ProgressEvent<FileReader> | ErrorEvent) => voidthe callback function to execute when the file
read failure
Read and detect the dimension of the given file