Live data from Hacker News

Image file formats that didn’t make it

tedium.co

51–60 of 210 posts

Re: Image file formats that didn’t make it

#51
post #35

IFF (or IFF-based formats) is a lot more widely used than some realize, just not usually with ILBM content nowadays. Microsoft RIFF (largely WAV and AVI, although animated Windows cursors also use RIFF), Apple's AIFF audio, Maya uses an IFF variant for raster image data, and even The Sims uses an IFF variant for many of its data files.

PNG is actually a cut down and then extended IFF.

Re: Image file formats that didn’t make it

#52
post #7

Tiff is very much not dead. It is likely one of the image formats more widely used today. Terabytes of new tiff images are prodced every hour and distributed by many remote sensing operators. It is a really flexible and robust format also. How else are you going to store a floating-point multispectral image of 8 bands and 50.000 x 50.000 pixels, arranged tile-wise for easy cropping?

The OpenEXR format, from the film industry, can also store an image with that configuration.

Re: Image file formats that didn’t make it

#53
post #6

Earlier quoted context omitted.

BMP and TGA have the advantage that they're uncompressed, so it's mostly trivial to dump the contents of your framebuffer to a file without any major dependencies.

You can write an uncompressed PNG IIRC.

Sort of but not really.

You can write out PNG files with deflate blocks that aren't compressed, so in that sense they are uncompressed PNG files, but all of the complexity of supporting compression is still there in the data format in a way that is not fully avoidable even if you don't actually compress the data.

BMPs on the other hand are simple to write, only a very small portion of the header data is required and then you can dump the image out as its raw pixel data in a way that they are probably already being stored in memory, making it a very easy format to support the writing of and a pretty easy format to support the reading of.

Re: Image file formats that didn’t make it

#54
post #19

Hmm; Tiff is still the default universally-readable format for many lossless purposes. It also seems to be used automatically in places: e.g. in Lightroom, clicking "External Editor" sends a TIF file to the external editor and imports it back by default. I thought it was also used in some scientific/analysis scenarios as well. I thought I also saw BMP in a lot of games for some reasons (not to mention it's default ou…

GeoTIFF is an interesting extension of TIFF that seems to serve a niche that other image formats cannot. It doesn't have the compression of say WebP or PNG, but the fact that it can have rich geographical metadata (projection, coordinates, etc.) makes it incredibly useful for GIS applications.

GeoTIFF does have internal compression support. In fact you can compress your GeoTIFF internally using WebP [0].

[0]: https://gdal.org/drivers/raster/cog.html#general-creation-op...

Re: Image file formats that didn’t make it

#56

Earlier quoted context omitted.

I think bitmaps are often used in 2d games for level definition or various other sorts of mapping (height, for 2.5d games, et c.)

Bitmap is the easiest image file format in the world to read/write and the easiest and sometimes fastest to shoot over to any video device in the history of computing. Almost every game making tutorial going back to the 80s has "how to read/write" bitmaps usually in it somewhere. Even 3D games will sometimes use them in a lot of odd places because it was faster/easier/took fewer cycles to include an uncompressed or s…

That's why some games have uncompressed audio files which made the game size ballooned up. If the game have so much audio on, it would be best to use uncompressed audio as CPU don't have to spend extra resources to decode bunch of audio files at the same time when the games is asking for it.

Re: Image file formats that didn’t make it

#57
In a summer tech program for pre-college high school tech-interested//inclined students, my group of three created four different VRML world-spaces. We each made our own, and I made the "gateway" world-space where you would enter a Parthenon-like structure with three hyperlink objects inside which you could click on to travel to each of the other places.

Each place had a similar hyperlink object to get back to the Parthenon.

I enjoyed it. I probably still have the VRML 2.0 book around somewhere.

Re: Image file formats that didn’t make it

#58
post #7

Tiff is very much not dead. It is likely one of the image formats more widely used today. Terabytes of new tiff images are prodced every hour and distributed by many remote sensing operators. It is a really flexible and robust format also. How else are you going to store a floating-point multispectral image of 8 bands and 50.000 x 50.000 pixels, arranged tile-wise for easy cropping?

For quite some time TIFF was the default format for screenshots on OS X, which was probably one of its more prominent uses by the general public. During that period it was also pretty common for developers to use TIFF for application assets like toolbar icons and splash screens. At some point that all shifted over to PNG, but macOS support for TIFF remains good to this day.

It’s because TIFF and Postscript are friends.

Source: NeXTStep ;-)

Re: Image file formats that didn’t make it

#59

JPEG2000 is a big one that seems to be missing. It is used in medical imaging or something, because laws? But its visual quality is worse than old JPEG, despite a PSNR advantage. Apparently, compression researchers used to think that people care about PSNR.

It also used to form the basis for Redcode, the file format used by RED digital cinema cameras. Not sure if the current version is still based on JPEG2000 though.

Re: Image file formats that didn’t make it

#60
Is bmp really dead? It's my go-to file format when playing around with graphic image programming (just stupid hobby stuff). It's easy to pick a format and write one out, and most everything reads it as a format that I've used, even on linux. It can be tricky reading one created by something else, but if you make assumptions based on the header sizes and the fact that you rarely run into one that not a simple 24-bit pixel array, its' not too bad. I do only use it as an interim format, though.
Post reply on HN