diff options
author | Robin Watts <robin.watts@artifex.com> | 2014-02-10 16:54:24 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2014-02-10 17:04:03 +0000 |
commit | a4a50269b2c62fddf34445140036e3f61b500d9e (patch) | |
tree | e5ab2bf4e75d0b96f0cced8f8e42dde3e564dc54 /source/img/muimage.c | |
parent | 9b9438fa4210b29023f85bb98c73f8f58a7760d5 (diff) | |
download | mupdf-a4a50269b2c62fddf34445140036e3f61b500d9e.tar.xz |
Bug 695022: Add TIFF format handler
Patch from Thomas Fach-Pedersen. Many thanks!
Add a new format handler that copes with TIFF files. This replaces
the TIFF functionality within the image format handler, and is
better because this copes with multiple images (as one image per
page).
Diffstat (limited to 'source/img/muimage.c')
-rw-r--r-- | source/img/muimage.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/img/muimage.c b/source/img/muimage.c index 300d6603..d545068f 100644 --- a/source/img/muimage.c +++ b/source/img/muimage.c @@ -164,16 +164,13 @@ image_recognize(fz_context *doc, const char *magic) { if (!fz_strcasecmp(ext, ".png") || !fz_strcasecmp(ext, ".jpg") || !fz_strcasecmp(ext, ".jpeg") || !fz_strcasecmp(ext, ".jfif") || - !fz_strcasecmp(ext, ".jfif-tbnl") || !fz_strcasecmp(ext, ".jpe") || - !fz_strcasecmp(ext, ".tif") || !fz_strcasecmp(ext, ".tiff")) + !fz_strcasecmp(ext, ".jfif-tbnl") || !fz_strcasecmp(ext, ".jpe")) return 100; } if (!strcmp(magic, "png") || !strcmp(magic, "image/png") || !strcmp(magic, "jpg") || !strcmp(magic, "image/jpeg") || !strcmp(magic, "jpeg") || !strcmp(magic, "image/pjpeg") || - !strcmp(magic, "jpe") || !strcmp(magic, "jfif") || - !strcmp(magic, "tif") || !strcmp(magic, "image/tiff") || - !strcmp(magic, "tiff") || !strcmp(magic, "image/x-tiff")) + !strcmp(magic, "jpe") || !strcmp(magic, "jfif")) return 100; return 0; |