| ▲ | flomo a day ago |
| Perhaps the greatest thing about TIFF, but also the most horrible things, and probably why TIFF is mostly historical. It was so extendable that no two programs ever accepted the exact same TIFF extensions. (omitting the war story) edit: forgot about byte order... |
|
| ▲ | yread a day ago | parent | next [-] |
| But most of these variations were part of the spec (endianness with II or MM, later magic 43 for bigTIFF 64bit extension). I work with tiff and tiff-derived formats in digital microscopy where its very much not historical. And the alternatives (DICOM supp 145, vendor-specific garbage ... and thats it) are worse. I quite like the format, the only thing I would change is to have the option not to store directory information in a linked list spread throughout the file but in a simple array. Duplicate it at the beginning and end of the file and you've got resilience too (important in the age of floppies) |
|
| ▲ | flufluflufluffy a day ago | parent | prev | next [-] |
| We have hundreds of thousands of TIFF files where I work which are scans of questionnaires filled out by clinical trial participants. The one annoying thing is that web browsers don’t natively display them. I did some incredibly inefficient JavaScript bs to decode the pixel data, plop it in a canvas, get a PNG data url from it, and set that as the src for an img element xD (why not just display the canvas? because I was too lazy to manually handle resizes…) good times |
|
| ▲ | piltboy a day ago | parent | prev | next [-] |
| TIFF is still very much alive in certain circles, see for example https://cogeo.org/
The format is basically a TIFF file with attached georeferencing information and with the data organized by geographical sector, enabling fast downloads of regional subsets. |
| |
| ▲ | abram a day ago | parent | next [-] | | The Adobe DNG standard for raw camera images is based on TIFF as well. DNG is used in lots of places, including the raw capture support built into all modern iOS and Android smartphones. I’ve been using both TIFF and DNG this very week in my work (https://filmlabapp.com), so I was happy to read this post and learn about Steve Carlsen aka Mr. TIFF, whose work we’re still building on 39 years later. | | |
| ▲ | mark-r 21 hours ago | parent [-] | | Not only DNG, but I think most (maybe all?) raw camera files are based on TIFF. | | |
| ▲ | omoikane 15 hours ago | parent | next [-] | | The top 3 (Canon, Sony, Nikon) are all based on TIFF, and that accounts for the majority of the market share. Search for "TIFF-based" here: https://exiftool.org/#supported | |
| ▲ | buildbot 18 hours ago | parent | prev [-] | | Not the .IA files from old Sinar digital backs! Those are based on DOOM PWADs (lol). But otherwise mostly yes this is true for nearly every other format as far as I am aware. |
|
| |
| ▲ | geokon a day ago | parent | prev | next [-] | | I'm not super knowledgeable about this stuff.. but out of curiosity, what advantage does it have over NetCDF? I wrote a program processing GeoTIFF data. When I had started this project I chose GeoTIFF mostly b/c i wanted something simple. And I could load them in to Java's BufferImage class and manipulate them that way. But it seems all the pros exclusively use NetCDF and GeoTiffs are for noobs (working with atmospheric science data here) GeoTIFF does extend "images" to cover more usecases, but a lot of stuff doesn't fit (like say a wind vector) and then you need some other container or metadata b/c you generally have many images. So I get the sense the complexity just ends up being moved elsewhere. | | |
| ▲ | piltboy a day ago | parent [-] | | Generally speaking I would classify TIFF and its variants as imaging formats (or for very simple numerical datasets), and NetCDF as more suited for raw data, in particular multi-dimensional data with time series, etc. For forecast and climatological data I find NetCDF is vastly superior, but also much more complicated to work with due to the capabilities and how open the format is. Just have a look at the complexity of the CF Conventions to see what I mean: https://cfconventions.org/cf-conventions/release/v1.12.0/cf-... For visualizing orthophotos and the like, I would choose GeoTIFF any day of the week, as they're easy to visualize across platforms using existing libraries. Using COGs you also get the functionality of a spatial index within each GeoTIFF file, meaning that you can stream subsets of GeoTIFF files without having to scan through the entire file for each request. | | |
| ▲ | geokon 4 hours ago | parent [-] | | Yeah the complexity of NetCDF was the ick factor that made me use GeoTIFF. It's just not the level of complexity I wanted to deal with in-program. I didn't want to wade through the details to understand the format, and I didn't want to then lock users to some subset Seemed easier to let users preprocess their NetCDFs into GeoTIFFs manually. I have a bunch of hacky scripts to massage NetCDFs from different sources in to compatible GeoTIFFs > meaning that you can stream subsets of GeoTIFF files without having to scan through the entire file for each request. Interesting. My performance bottleneck right now is the user selects a small regions and then the program has to read in GBs of global precipitation maps (from IMERG) and cut out tiny squares. In the extreme cases it can mean ~2 minutes of waiting for a result. This means the user can't casually select and try out different regions with quick feedback. If you have a beefy machine you can keep it all in RAM sometimes and it works better.. but it's not ideal (my 16GB machine can only handle simpler scenarios) I'll take a closer look at in the future. At the moment I just use Java's default TIFF reader and ImageBuffer class. Maybe it'd be easy to convert to COG format and adapt in a COG reader |
|
| |
| ▲ | a day ago | parent | prev [-] | | [deleted] |
|
|
| ▲ | wiredfool a day ago | parent | prev [-] |
| This is why some people consider TIFF to stand for “Thousands of Incompatible File Formats”. |