I'm developing an ImageMagick coder for decoding Atari XL/XE images (sources and example images are at http://fail.sourceforge.net/), which handles about 50 different (sometimes rare) image formats. Some file name extensions that are supported by FAIL coder (they are registered in the coder.xml file) are also supported by other coders, installed with standard installation of IM. This causes conflicts when I try to open files like RGB, CIN or CCI, for example:
Code: Select all
display: must specify image size `ASTROS.RGB' @ error/rgb.c/ReadRGBImage/142.
display: length and filesize do not match `DRACONUS.CCI' @ error/bmp.c/ReadBMPImage/785.
display: static planes value not equal to 1 `DRACONUS.CCI' @ error/bmp.c/ReadBMPImage/797.
display: length and filesize do not match `KILLER.CCI' @ error/bmp.c/ReadBMPImage/785.
display: negative or zero image size `KILLER.CCI' @ error/bmp.c/ReadBMPImage/793.
display: improper image header `TITUS.CIN' @ error/cin.c/ReadCINImage/443.
display: improper image header `VIDOL_DUPLAND.CIN' @ error/cin.c/ReadCINImage/443.
Code: Select all
$ display COYOTE.RIP ASTROS.RGB
Is it possible to make IM retry opening file with other coders if it fails to open it with the first one?