Incomplete jpg or image files?

0

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.

user3109

Posted 2012-10-29T19:10:58.980

Reputation:

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 – 2012-10-29T19:31:09.623

@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 – None – 2012-10-29T19:43:42.437

Answers

2

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

user3109

Posted 2012-10-29T19:10:58.980

Reputation: