Description
The way the IO factory works is that for every ImageIO it is constructed and then "CanRead" is called to determine if it's the correct one to use. If every ImageIO open the file, checks, and closes the file it will slow down this process ( consider network or remote files ).
Expected behavior
There have been recent improvements for the ImageIOs to report the extensions it can read. To pursue this feature further I'd recommend making the IO Factory construction two passes:
- Check the extension of the file is supported for each IO, if found then use that ImageIO.
- Then check the CanRead method which may open the file.
Additional Information
Suggested by @blowekamp in #1407.
Description
The way the IO factory works is that for every ImageIO it is constructed and then "CanRead" is called to determine if it's the correct one to use. If every ImageIO open the file, checks, and closes the file it will slow down this process ( consider network or remote files ).
Expected behavior
There have been recent improvements for the ImageIOs to report the extensions it can read. To pursue this feature further I'd recommend making the IO Factory construction two passes:
Additional Information
Suggested by @blowekamp in #1407.