mirror of
https://github.com/gophernicus/gophernicus.git
synced 2024-07-21 03:14:15 -04:00
The existing JPEG detection logic is too restrictive because it checks for the file header "FF D8 FF E0", which only matches JFIF-type JPEG images... Meanwhile EXIF JPEG images are more common these days. For reference: FF D8 = JPEG SOI (Start of Image) header FF-D8-FF-E0 = JFIF FF-D8-FF-E1 = EXIF FF-D8-FF-E2 = CIFF FF-D8-FF-E8 = SPIFF As you can see checking for the SOI and then FF matches all extent types of JPEG images. \o/ |
||
---|---|---|
.. | ||
bin2c.c | ||
file.c | ||
filetypes.conf | ||
filetypes.sh | ||
gophernicus.c | ||
gophernicus.h | ||
log.c | ||
menu.c | ||
options.c | ||
platform.c | ||
session.c | ||
string.c |