ImageIO.checkFile#

ImageIO.checkFile(file, mode)#

Checks and possibly opens the file.

Parameters:
filestr or file-like

File path or file handle.

modestr

File mode, as in the open() function.

Raises:
IOError

If file is neither a string nor a file object.