Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3796528
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:15:00+00:00 2026-05-19T13:15:00+00:00

I have >2000 images from a webcam stream (for a time-lapse video), I need

  • 0

I have >2000 images from a webcam stream (for a time-lapse video), I need to delete all incomplete & corrupted images, before passing them to a php-gd script that edits them for the final video.

Is it possible to detect corrupted files with imagemagick or some other tool? If i try to open the corrupted image with feh it displays libpng error: Read Error in console

Thanks in advance!

UPDATE: It seems that the suggested identify method accepts the bad images in my case. Here is an example of a corrupted one http://imgur.com/YcB9n

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T13:15:01+00:00Added an answer on May 19, 2026 at 1:15 pm

    Try ImageMagick’s identify command. From the man page:

    Identify describes the format and
    characteristics of one or more image
    files. It will also report if an image
    is incomplete or corrupt.

    Example:

    $ identify foo.png
    identify: NotAPNGImageFile (foo.png).
    
    $ echo $?
    1
    

    An alternative, is to use PIL (Python Imaging Library):

    from PIL import Image
    
    im = Image.open("foo.png")
    im.verify()
    

    From the documentation:

    im.verify()

    Attempts to determine if the file is
    broken, without actually decoding the
    image data. If this method finds any
    problems, it raises suitable
    exceptions. This method only works on
    a newly opened image; if the image has
    already been loaded, the result is
    undefined. Also, if you need to load
    the image after using this method, you
    must reopen the image file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

You have 2000 raw images, 52x52 pixels, RGB 24 bits, that correspond to the
I have a SQL 2000 database with around 10 million rows and I need
I'm working for the first time with images in a JFrame, and I have
I need to grab a some images from a folder on a users computer
I have an Activity with three images. When one image is clicked, all the
I have a CustomCursorAdapter to do the nice section headers. I removed all images
I wrote a code to show images one at a time from my div.
I have a SQL Server 2000 with a table containing an image column. How
I have at my SQL Server 2000 Database a column with type Image .
I have about 2000 lines of javascript code for my application. A lot of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.