Find the image format for the file specified by the fileOrName parameter.
File object or file name string
Optional.
Find the image format for the file specified by the fileOrName parameter.