Page 1 of 1
truncated jpegs etc to tag or delete or at least skip them
Posted: 2009-05-13T06:45:25-07:00
by tobycarr
Hi,
is there any way using IM to seek out images that are corrupted, or truncated jpegs etc and tag or delete or at least skip them in batch processing as I have quite a few hidden in large directories,
Thanks
Re: truncated jpegs etc to tag or delete or at least skip them
Posted: 2009-05-13T10:06:22-07:00
by fmw42
might be able to use identify if it gives you an error message.
what do you get returned with a corrupted image when you use
identify corruptedimage
or
identify -verbose corruptedimage
If you get some error message, you can write a shell script to test using identify and skip or delete the image.
Re: truncated jpegs etc to tag or delete or at least skip them
Posted: 2009-05-13T18:04:52-07:00
by anthony
Also look at the option
-regard-warnings
See Im Examples Operational Controls
http://www.imagemagick.org/Usage/basics/#controls
Re: truncated jpegs etc to tag or delete or at least skip them
Posted: 2009-05-14T17:04:31-07:00
by tobycarr
Great thanks Anthony and Fred(?)
..I'll test thru those suggestions first and see how it goes..
ta