Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

One of my tools didn't work properly and i have a lot of image files that isn't complete (50%, 70, it varies). What is a command line tool or lib (C++ or .NET, .NET preferred if not command line) to check if a image file is completed or not. I can see part of the image when i open it but it is obviously not completed so i'd like to delete them all and restart my tool.

share|improve this question
    
Which formats other than JPG? If there's an EOF marker or the header includes (expected) file size information, it might be possible to check for those. For JPGs, JpegInfo should help; also see here. –  Karan Oct 29 '12 at 19:31
    
@Karan: Good i'll use that, but... i'm on windows. I think i can figure something out using my linux VM so +1. I'll wait for a bit before solving –  acidzombie24 Oct 29 '12 at 19:43
add comment

1 Answer

imagemagick identify with -regard-warnings -verbose does the job (stderr msg at end)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.