single_file_libs icon indicating copy to clipboard operation
single_file_libs copied to clipboard

Suubmission: TIFF loader

Open MalcolmMcLean opened this issue 7 years ago • 1 comments

Single file TIFF loader, written in portable ANSI C. Reasonably well tested. Does practically everything except JPEG TIFFs. https://github.com/MalcolmMcLean/tiffloader

MalcolmMcLean avatar Oct 31 '18 12:10 MalcolmMcLean

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.

Photosounder avatar Apr 15 '19 12:04 Photosounder