In the worst case, old libtiff versions will return a different error.
See http://www.awaresystems.be/imaging/tiff/bigtiff.html for more info.
---
src/image-load.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/image-load.c b/src/image-load.c
index 0a4cda6d..bafc16c5 100644
--- a/src/image-load.c
+++ b/src/image-load.c
@@ -614,6 +614,8 @@ static void image_loader_setup_loader(ImageLoader *il)
#ifdef HAVE_TIFF
if (il->bytes_total >= 10 &&
(memcmp(il->mapped_file, "MM\0*", 4) == 0 ||
+ memcmp(il->mapped_file, "MM\0+\0\x08\0\0", 8) == 0 ||
+ memcmp(il->mapped_file, "II+\0\x08\0\0\0", 8) == 0 ||
memcmp(il->mapped_file, "II*\0", 4) == 0))
{
DEBUG_1("Using custom tiff loader");
--
2.11.0
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Geeqie-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-devel