Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Testing JPEGs for validity (windows)

by sanbeg (Novice)
on Sep 28, 2012 at 21:08 UTC ( [id://996297]=note: print w/replies, xml ) Need Help??


in reply to Testing JPEGs for validity (windows)

I was just doing something similar, and there didn't seem to be anything out there, so I uploaded one. http://search.cpan.org/~sanbeg/Image-ValidJpeg-1.00/.
  • Comment on Re: Testing JPEGs for validity (windows)

Replies are listed 'Best First'.
Re^2: Testing JPEGs for validity (windows)
by kosmarnik (Acolyte) on Oct 23, 2013 at 07:59 UTC
    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.
      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://996297]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-24 18:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found