Jump to content

Talk:TIFF

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Compression usage and support

[edit]

How is the compression usage and support calculated?

I understand that the ZIP (zlib / deflate) compression is quite popular (here marked as "Uncommon" ), although I'm unable to measure it. Which methodology was used to set this column of the table? When was it done? Should it be reviewed?— Precedingunsignedcomment added byVini.sch(talkcontribs)15:26, 2 March 2020 (UTC)[reply]

The non-standard value 0x80b2 for tag 259 is uncommon and obsolete, the standard value 8 should be used instead and for value 8 the table says that support for and usage of this tag value are common. The comment common or uncommon refers to the tag value, not what's behind it, although that could be made clearer.2A02:A461:E1E:1:21B:FCFF:FE75:6ADE(talk)15:55, 1 September 2022 (UTC)[reply]

Overview rewrite

[edit]

It seems appropriate to reorganise the current description of the format (Features and options section) into two sections "Overview" and "Details", to let the reader see the big picture before getting into specific details. Drafting such an overview section here.90.129.219.218(talk)07:50, 23 March 2022 (UTC)[reply]

This drafted text is now live in the article.130.243.94.123(talk)12:00, 8 April 2022 (UTC)[reply]


A TIFF file contains oneor severalimages, termedsubfilesin the specification. The basic use-case for having multiple subfiles is to encode a multipagetelefaxin a single file, but it is also allowed to have different subfiles be different variants of the same image, for example scanned at different resolutions. Rather than being a continuous range of bytes in the file, each subfile is a data structure whose top-level entity is called animage file directory(IFD). Baseline TIFF readers are only required to make use of the first subfile, but each IFD has a field for linking to a next IFD.

The IFDs are where we find thetagsfor which TIFF are named. Each IFD contains one or severalentries,each of which is identified by its tag. The tags are arbitrary 16-bit numbers; their symbolic names such as ImageWidth often used in discussions of TIFF data do not appear explicitly in the file itself. Each IFD entry has an associatedvalue,which may be decoded based on general rules of the format, but it depends on the tag what that value thenmeans.There may within a single IFD be no more than one entry with any particular tag. Some tags are for linking to the actual image data, other tags specify how the image data should be interpreted, and still other tags are used for imagemetadata.

TIFF images are made up of rectangular[1]grids of pixels. The two axes of this geometry are termed horizontal (or X, or width) and vertical (or Y, or length). Horizontal and verticalresolutionneed not be equal (since in a telefax they typically would not be equal). A baseline TIFF image divides the vertical range of the image into one or severalstrips,which are encoded (in particular: compressed) separately. Historically this served to facilitate TIFF readers (such as fax machines) with limited capacity to store uncompressed data — one strip would be decoded and then immediately printed — but the present specification motivates it by “increased editing flexibility and efficient I/O buffering”. A TIFF extension provides the alternative oftiledimages, in which case both the horizontal and the vertical ranges of the image are decomposed into smaller units.

An example of these things, which also serves to give a flavour of how tags are used in the TIFF encoding of images, is that a striped TIFF image would use tags 273 (StripOffsets), 278 (RowsPerStrip), and 279 (StripByteCounts). The StripOffsets point to the blocks of image data, the StripByteCounts say how long each of these blocks are (as stored in the file), and RowsPerStrip says how many rows of pixels there are in a strip; the latter is required even in the case of having just one strip, in which case it merely duplicates the value of tag 257 (ImageLength). A tiled TIFF image instead uses tags 322 (TileWidth), 323 (TileLength), 324 (TileOffsets), and 325 (TileByteCounts). The pixels within each strip or tile appear inrow-majororder, top to bottom and left to right.

The data for one pixel is made up of one or severalsamples;for example anRGBimage would have one Red sample, one Green sample, and one Blue sample per pixel, whereas a greyscale or palette color image only has one sample per pixel. TIFF allows for bothadditive(e.g. RGB,RGBA) andsubtractive(e.g.CMYK) color models. TIFF does not constrain the number of samples per pixel (except that there must be enough samples for the chosen color model), nor does it constrain how many bits are encoded for each sample, but baseline TIFF only requires that readers support a few combinations of color model and bit-depth of images. Support for custom sets of samples is very useful for scientific applications; 3 samples per pixel is at the low end ofmultispectral imaging,andhyperspectral imagingmay require hundreds of samples per pixel. TIFF supports having all samples for a pixel next to each other within a single strip/tile (PlanarConfiguration = 1) but also different samples in different strips/tiles (PlanarConfiguration = 2). The default format for a sample value is as an unsigned integer, but a TIFF extension allows declaring them as alternatively being signed integers orIEEE-754floats, as well as specify a custom range for valid sample values.

TIFF images may be uncompressed, compressed using alossless compressionscheme, or compressed using alossy compressionscheme. The losslessLZWcompression scheme has at times been regarded as the standard compression for TIFF, but this is technically a TIFF extension, and the TIFF6 specification notes the patent situation regarding LZW.

Most data in TIFF files are numerical, but the format supports declaring data as rather being textual, if appropriate for a particular tag. Tags that take textual values include Artist, Copyright, DateTime, DocumentName, InkNames, and Model.

References

  1. ^Nothing prevents someone defining a TIFF extension that would introduce some other kind of pixel geometry, or even house non-pixel-based graphics in a TIFF container, but so far there does not seem to have been any need for that. Hence TIFF images have a rectangular pixel geometry.

The.svs suffix

[edit]

I see that a ".svs" file name suffix can indicate a tiled TIFF format. Would someone who knows what they are talking about add mention of this suffix to the article at an appropriate place? Thanks! —Quantling(talk|contribs)15:28, 27 March 2023 (UTC)[reply]

Tag/Tagged

[edit]

@Quantling,I noticed you reverted @Jojo-schmitz'seditwhich changedTagtoTagged,and subsequently edited many pages to expand the acronym asTag Image File Format.Your citation for this revert wasthis page on Adobe.And since Adobe owns the copyrights, who can argue with that, right? Well, I believe it is not so simple, as can be seen bythis other page on Adobethat usesTaggedrather thanTag.

From 2005-2020, this article usedTagged.It was only withthis edit in 2020by @Dcluniethat we changed toTag.

If we look at the specs, we seeversion 4.0 from 1987usesTag,butversion 5.0 from 1988declines to expand the acronym, as doesversion 6 from 1992.If we take those specs at their word, the acronym has no official expansion.

But the Adobe specs aren't the only specs that mention TIFFs.RfC 2302 from 2002usesTag,as do RfCs2301,3949,3950,2306,and possibly more. ButRfC 1314slips and calls itTagged(despite calling itTagin its own references section - interestingly, it references version 5.0, the only text of which I can find doesnothave the title that the RfC gives it).

What about other reliable sources?The Library of Congresscalls itTaggedand notes that bothTagandTaggedare in circulation, and thatthe title page of the 1992 specification does not spell out the abbreviation.It goes on to cite Wikipedia, at which point we should probably consider the issue ofWP:CITOGENESIS.Wikipedia is influential. Perhaps our longstanding use ofTaggedhas influenced this page.

TheUK National Archivesunequivocally calls itTagged.Other notable organisations in the Tagged camp includeMozilla,NASA,Microsoft,andApple

But wait,Apple are also in the Tag camp,as are Microsoft.

What about a broad survey of general usage? I see646,000Google search results for"Tagged Image File Format"and75,100for"Tag Image File Format".Google Scholar returns19,500and2,990respectively.

What about Wikipedia readers?Page view analysisshows that readers overwhelmingly use theTagged Image File Formatredirect rather than theTag Image File Formatredirect.

What about the plain sense or style of the thing? To my ear, "Tagged Image File Format" makes a lot more grammatical sense than "Tag Image File Format". What's a tag image anyway?

In conclusion, I think that whileTagwas clearly once the official usage, subsequent spec revisions have not endorsed this and there is now noofficialusage. In terms of common usage in sources, I think there is clear evidence thatbothusages are valid, withTaggedperhaps edging ahead due to its far greater usage in scholarship and being more grammatically sensical.

How to handle this in the lead sentence? We could writeTag/Tagged Image File Format,orTag(ged) Image File Format,or perhaps omit any expansion of the acronym, but my preference would be to return the article to its longstanding pre-2020 lead and simply writeTagged Image File Format.The history of the name can come later in the article body.Barnards.tar.gz(talk)23:00, 3 November 2023 (UTC)[reply]

Thank you for your research! It is definitely more complicated than I realized. I would like to see both versions in the TIFF article because they are both used (WP:COMMONNAME). However, I think it would be awkward to use both on other pages. I would defer to using the article's name, "TIFF",which is neither"Tag Image File Format"nor"Tagged Image File Format".So maybe other pages should say merely" TIFF ". (The TIFF article's name is not written in stone of course; you could propose a page move.)
FWIW, I think of "tag image" vs. "tagged image" to be similar to "color image" vs. "colored image"; all sound good to my ear and they are fine in their respective contexts. But I don't see it as all that relevant what your ear or mine says. More importantly, we need to look toWP:COMMONNAMEand similar policies. —Quantling(talk|contribs)02:00, 4 November 2023 (UTC)[reply]

Talk archive

[edit]

There is a fairly large archive for this Talk page atTalk:TIFF/Archive 1,but there is no link at the top of this page to guide the reader to it. Can somebody fix this?GrindtXX(talk)12:11, 4 November 2023 (UTC)[reply]

OK, I've added a Talk header template, which seems to have fixed the problem.GrindtXX(talk)13:19, 5 November 2023 (UTC)[reply]