By jim, 2 months ago
Certain corrupt JPEG files will explode Quicktime Player if it encounters them in an "Import Image Sequence…" operation. This bug has been present for many years and shows no sign of going away.

If you are archiving images from cheap webcams you will encounter these.

I am not aware of anything included with Mac OS X Leopard that validates a JPEG file, so I built jpeginfo for Leopard. 

With that, you can do things like…
for v in *.jpg ;do jpeginfo -c $v || rm $v ;done
… to delete all the corrupted JPEGs.

You can find the sources at http://www.iki.fi/tjko/projects.html
You will also need to build libjpeg, from ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz

Build libjpeg first (./configure ; make ), then build jpeginfo (./configure --with-libjpeg=THE-RIGHT_DIRECTORY ; make )

But you don't need to do that... I've attached the copy I built.

Attachments

jpeginfo 103388 bytes
comment by jim, 2 months ago
I might mention that there are still some jpegs that will crash the quicktime encoder that are valid according to jpeginfo, but it gets most of them.
The femtoblogger software is being written by Jim Studt. The content of this page is provided by anonymous individuals. If you believe something on this page is innapropriate contact Jim Studt.

Contribute

login
logout
post
create account (12 seconds)
recent comments

Filter

everything
coding
femtoblogger
language
linux

Search

Browsers

googlebot26.9%
IE 616.6%
yahoobot15.7%
Firefox12.2%
msnbot10.8%
hiding6.4%
Safari6.3%
IE 74.1%
Opera0.6%
Chrome0.2%
jeevesbot0.1%
iPhone0.1%
IE 50.0%
unknown0.0%

Archives

2009January1
2008December2
November4
October5
September1
August1
July2
June3
May3
April4
February1
January4
2007December1
November3
October8
September18