Luminous Landscape Forum
Raw & Post Processing, Printing => Digital Image Processing => Topic started by: Redcrown on February 05, 2013, 02:36:44 pm
-
Anybody know what is inside a Photoshop generated 16-bit tif file? Specifically, what kind of image is "embedded" in a Photoshop tif that allows other programs to read it, even if the tif contains multiple layers?
I've always thought the embedded image is an 8-bit jpeg, but recent experience testing some HDR programs implies otherwise. It appears that those HDR programs are able to extract a true 16-bit lossless image from a Photoshop layered tif.
In my tests, I fed two versions of an image to an HDR program. One was a 16-bit layered tif, one was a flattened jpeg, 8-bit, high quality. The image contained a smooth gradient, which easily shows the difference in the originals between 16-bit and 8-bit. No adjustments were applied in the HDR program, but the outputs showed significant differences. The differences indicate that the HDR program got true 16-bit lossless data from the layered tif.
I'm asking here because this may be the only photography forum left with experienced gurus who might know the answer. Google has given me lots of gory details about the history of the tif format and its specifications, but I can't find the answer I'm looking for. What is embedded?
-
Adobe bought the rights to tif. They have documents on their website explaining it. Yes, it can have layers. Almost all RAW files are a ISO standard tif with compression and additional data wrapper like EXIF. That is why DNG converter works.
-
Adobe bought the rights to tif.
Actually, they bought Aldus and inherited TIFF because of that purchase/merger. Aldus, MSFT, Kodak and others developed the TIFF file format.
As far as what is in a TIFF, yes, there are specs for TIFF-6 (the most recent revision) and can be downloaded here: http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf (http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf).
If you have a 16-bit TIFF image file with layers, there will be the layers as well as a flattened composite 16 bit version which is what 3rd party apps that use TIFF can access (in the event the app does't support layers). You can save a 16 bit TIFF with ether LZW or ZIP compression but it's specifically NOT JPEG. JPEG compression in a TIFF file is limited to 8 bit only.
-
That is what I meant, I could not remember the name Aldus. The info is on the wiki page.
Tif is a great format.
-
Anybody know what is inside a Photoshop generated 16-bit tif file?
You can download the freely available program 'tiffinfo' what lets you see all kinds of metadata stored in a tiff file. I ran it on an image and here is what I got:
TIFF Directory at offset 0x8 ( 8 )
Subfile Type: (0 = 0x0)
Image Width: 560 Image Length: 277
Resolution: 240, 240 pixels/inch
Bits/Sample: 16
Compression Scheme: LZW
Photometric Interpretation: RGB color
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 3
Rows/Strip: 78
Planar Configuration: single image plane
Make: PENTAX
Model: PENTAX K-5 II s
Software: Adobe Photoshop CS3 Macintosh
DateTime: 2013:02:06 07:21:58
XMLPacket (XMP Metadata):
<?xpacket begin="Ôªø" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 4.1-c036 46.276720, Mon Feb 19 2007 22:13:43 ">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:tiff="http://ns.adobe.com/tiff/1.0/">
<tiff:Make>PENTAX</tiff:Make>
<tiff:Model>PENTAX K-5 II s</tiff:Model>
<tiff:Orientation>1</tiff:Orientation>
<tiff:XResolution>2400000/10000</tiff:XResolution>
<tiff:YResolution>2400000/10000</tiff:YResolution>
<tiff:ResolutionUnit>2</tiff:ResolutionUnit>
<tiff:NativeDigest>256,257,258,259,262,274,277,284,530,531,282,283,296,301,318,319,529,532,306,270,271,272,305,315,33432;AA09D8EA1862955C3B995A65F60A16EE</tiff:NativeDigest>
<tiff:ImageWidth>560</tiff:ImageWidth>
<tiff:ImageLength>277</tiff:ImageLength>
<tiff:BitsPerSample>
<rdf:Seq>
<rdf:li>16</rdf:li>
<rdf:li>16</rdf:li>
<rdf:li>16</rdf:li>
</rdf:Seq>
</tiff:BitsPerSample>
<tiff:Compression>5</tiff:Compression>
<tiff:PhotometricInterpretation>2</tiff:PhotometricInterpretation>
<tiff:SamplesPerPixel>3</tiff:SamplesPerPixel>
<tiff:PlanarConfiguration>1</tiff:PlanarConfiguration>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:exif="http://ns.adobe.com/exif/1.0/">
<exif:DateTimeOriginal>2012-10-30T18:06:20Z</exif:DateTimeOriginal>
<exif:DateTimeDigitized>2012-10-30T18:06:20Z</exif:DateTimeDigitized>
<exif:ExposureTime>1/180</exif:ExposureTime>
<exif:ISOSpeedRatings>
<rdf:Seq>
<rdf:li>100</rdf:li>
</rdf:Seq>
</exif:ISOSpeedRatings>
<exif:ShutterSpeedValue>7491853/1000000</exif:ShutterSpeedValue>
<exif:ExposureBiasValue>0/10</exif:ExposureBiasValue>
<exif:MeteringMode>2</exif:MeteringMode>
<exif:Flash rdf:parseType="Resource">
<exif:Fired>True</exif:Fired>
<exif:Return>0</exif:Return>
<exif:Mode>1</exif:Mode>
<exif:Function>False</exif:Function>
<exif:RedEyeMode>False</exif:RedEyeMode>
</exif:Flash>
<exif:CustomRendered>0</exif:CustomRendered>
<exif:ExposureMode>1</exif:ExposureMode>
<exif:WhiteBalance>0</exif:WhiteBalance>
<exif:PixelXDimension>560</exif:PixelXDimension>
<exif:PixelYDimension>277</exif:PixelYDimension>
<exif:ColorSpace>1</exif:ColorSpace>
<exif:NativeDigest>36864,40960,40961,37121,37122,40962,40963,37510,40964,36867,36868,33434,33437,34850,34852,34855,34856,37377,37378,37379,37380,37381,37382,37383,37384,37385,37386,37396,41483,41484,41486,41487,41488,41492,41493,41495,41728,41729,41730,41985,41986,41987,41988,41989,41990,41991,41992,41993,41994,41995,41996,42016,0,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,22,23,24,25,26,27,28,30;9743F18454296DAFB5384D863782E8D3</exif:NativeDigest>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:xap="http://ns.adobe.com/xap/1.0/">
<xap:CreateDate>2013-02-06T07:21:58Z</xap:CreateDate>
<xap:ModifyDate>2013-02-06T07:21:58Z</xap:ModifyDate>
<xap:MetadataDate>2013-02-06T07:21:58Z</xap:MetadataDate>
<xap:CreatorTool>Adobe Photoshop CS3 Macintosh</xap:CreatorTool>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:format>image/tiff</dc:format>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/">
<photoshop:ColorMode>3</photoshop:ColorMode>
<photoshop:ICCProfile>sRGB IEC61966-2.1</photoshop:ICCProfile>
<photoshop:History/>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:xapMM="http://ns.adobe.com/xap/1.0/mm/">
<xapMM:DerivedFrom rdf:parseType="Resource"/>
<xapMM:InstanceID>uuid:E868612BC071E211A01FEC1E81316C37</xapMM:InstanceID>
<xapMM:DocumentID>uuid:E768612BC071E211A01FEC1E81316C37</xapMM:DocumentID>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?>
RichTIFFIPTC Data: <present>, 64 bytes
Photoshop Data: <present>, 10784 bytes
EXIFIFDOffset: 658496
ICC Profile: <present>, 3144 bytes
TIFF Directory at offset 0xa0c40 (658496)
ExposureTime: 0.005556
ISOSpeedRatings: 100
DateTimeOriginal: 2012:10:30 18:06:20
DateTimeDigitized: 2012:10:30 18:06:20
ShutterSpeedValue: 7.491853
ExposureBiasValue: 0.000000
MeteringMode: 2
Flash: 9
ColorSpace: 1
PixelXDimension: 560
PixelYDimension: 277
CustomRendered: 0
ExposureMode: 1
WhiteBalance: 0
-
That will make good bedtime reading. ;) :)
-
That will make good bedtime reading. ;) :)
I think I'll wait for the film.... ;)