Use convert from ImageMagick.

$ convert image.jpg /dev/null &> /dev/null ; echo $?

Should display 0 for valid files, 1 for corrupt files.



On Sat, Oct 19, 2013 at 2:19 AM, STeve Andre' <and...@msu.edu> wrote:

> Is there such a program in the ports tree?  I thought there was,
> but I can't find it.  I have a few corrupted jpeg's and I'd like to be
> able to easily test them.
>
> Thanks, STeve Andre'
>
>

Reply via email to