Code: Select all
convert -monochrome -compress Group4 page1.tiff page2.tiff page3.tiff result.tiff
The ideal solution for me is that if any of the supplied pages are unreadable, the command fails with no generated files.
I do know that I can watch STDERR, but since my files generate all sorts of warnings, most of which don't constitute a failure to process the images, it's hard to know what actually do constitute an error.
I suspect my real solution is to stop trying to use 'convert', and use php/perl/python and the associated imagemagick library, but I was hoping to keep this simple.
Any thoughts?
Geof