Open MalcolmMcLean opened 5 years ago
Damn I was looking for this around the time you posted it, didn't find it, I wish I had seen it before I wrote my own. Kudos on handling decompression, I'm struggling with LZW decoding.
It looks good but one problem with it is that it relies on directly file reading, which for many people like me is no good because we don't necessarily read directly from TIFF files, so the common denominator is reading from memory, and then you can wrap a file loader around it, but you can't do the opposite. Stb_image even makes file-based functions optional, although it seems that when it loads from files it uses callbacks with a same interface. Also I made it crash with an LZW-encoded file, I'll create an issue.
Single file TIFF loader, written in portable ANSI C. Reasonably well tested. Does practically everything except JPEG TIFFs. https://github.com/MalcolmMcLean/tiffloader