Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
This working fine exept there are some incorrect files at wich mogrify complains.
I would like to delete those bad files if mogrify can't resize them. Is it possible?
Post an example image that mogrify will not process. Do you know why it fails? Is the file corrupt? Can you process the file with convert rather than mogrify?
Can you get results from
identify yourimage
If that fails, then you would be able to identify such files by looping over each file in your directory and testing whether identify fails or not. Get rid of all those files. Then use your command with mogrify on all the good files.
fmw42 wrote:Post an example image that mogrify will not process. Do you know why it fails? Is the file corrupt? Can you process the file with convert rather than mogrify?
Can you get results from
identify yourimage
If that fails, then you would be able to identify such files by looping over each file in your directory and testing whether identify fails or not. Get rid of all those files. Then use your command with mogrify on all the good files.
There are just number of corrupted images. I like your idea to identify and delete failed images first but don't know how to acomplish this.
This will identify all files:
First let us know if identify fails for your bad images. Or provide a link to one example that fails so we can figure out the best way to test them and remove them.
fmw42 wrote:First let us know if identify fails for your bad images. Or provide a link to one example that fails so we can figure out the best way to test them and remove them.
fmw42 wrote:First let us know if identify fails for your bad images. Or provide a link to one example that fails so we can figure out the best way to test them and remove them.
Yes, identity fails for that images.
Can you provide the error message or how it fails? It would be best to provide a link to one image that fails, so we can test and come up with a loop that will delete or move those images to another directory.