Codebase list magicrescue / 4f0163a9-1d62-4605-b6d7-259c18b64401/main recipes / jpeg-jfif
4f0163a9-1d62-4605-b6d7-259c18b64401/main

Tree @4f0163a9-1d62-4605-b6d7-259c18b64401/main (Download .tar.gz)

jpeg-jfif @4f0163a9-1d62-4605-b6d7-259c18b64401/mainraw · history · blame

1
2
3
4
5
6
7
8
# 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"