# Extracts jpeg files with the JFIF magic bytes. These are usually created by # graphics manipulation programs. # Depends on jpegtran from libjpeg: http://freshmeat.net/projects/libjpeg/ # See also jpeg-exif 6 string JFIF 0 int32 ffd80000 ffff0000 extension jpg command jpegtran -copy all -outfile "$1"