in reply to Re: Testing JPEGs for validity (windows)
in thread Testing JPEGs for validity (windows)

Awesome, I'll test soon. Check_jpeg method is just what I was looking for as the main problem with the JPEGs I have is truncated files. Now I just need such a tool for TIFFs :) don't have as many of them (a few hundred thousand) but they're 12mp 16bit ~70MiB per file and ImageMagick is slow and produces too many false positives.
  • Comment on Re^2: Testing JPEGs for validity (windows)

Replies are listed 'Best First'.
Re^3: Testing JPEGs for validity (windows)
by Anonymous Monk on Dec 05, 2013 at 18:45 UTC
    Have you tried the Ping method in ImageMagick?

    Ping() is a convenience method that returns information about an image without having to read the image into memory. It returns the width, height, file size in bytes, and the file format of the image. You can specify more than one filename but only one filehandle:

    ...

    This a more efficient and less memory intensive way to query if an image exists and what its characteristics are.