Prevent Mogrify from exiting upon exception
Posted: 2019-02-15T14:20:08-07:00
Hi Everyone,
Is there a way to prevent Mogrify from exiting with code 1 if there's a problem with one of the files and exception is thrown so it can continue processing the rest of the files? For example we use command like:
magick mogrify -format jpg -thumbnail 1000x1000 -gravity center -background white *
but if one of the files is mp4 the following exception is thrown:
<event>2019-02-15T12:41:24-08:00 0:00.260 0.156u 7.0.7 Exception mogrify[4932]: constitute.c/ReadImage/509/Exception
no decode delegate for this image format `'</event>
Is there a way to prevent the whole process from quitting if one of the files is "bad"?
Thanks you
Is there a way to prevent Mogrify from exiting with code 1 if there's a problem with one of the files and exception is thrown so it can continue processing the rest of the files? For example we use command like:
magick mogrify -format jpg -thumbnail 1000x1000 -gravity center -background white *
but if one of the files is mp4 the following exception is thrown:
<event>2019-02-15T12:41:24-08:00 0:00.260 0.156u 7.0.7 Exception mogrify[4932]: constitute.c/ReadImage/509/Exception
no decode delegate for this image format `'</event>
Is there a way to prevent the whole process from quitting if one of the files is "bad"?
Thanks you