Questions:
- change the image iterator index (like MagickWand.MagickSetIteratorIndex)
- get the current iterator index (like MagickWand.MagickGetIteratorIndex)
- write only the image on the current iterator index (like MagickWandImage.MagickWriteImage)
- how to find out if there is at least one image in the image sequence or count the images in the image sequence
- "( -clone INDEX ... +delete )", but maybe there is another solution
- -print "%p", I don't know if this works (it is always 0), because the iterator index can't be set
- "( -clone INDEX -write FILE +delete )", but maybe there is another solution
- -print "%n", but if no image is in the image list then this value is still 1
-print "%n file:%i\n", if there is no image left then the file name is empty
identify is also not an option, because the program will exit with an error