Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx-z.one.com (mx-z.one.com [195.47.247.151])
	by mail6.local (Postfix) with ESMTP id 76EC58014FAF1
	for <filtered@awaresystems.be>; Fri, 14 Jun 2013 20:59:36 +0200 (CEST)
X-Virus-Scanned: by one.com
Received-SPF: pass (mx-z: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.215.46 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-la0-f46.google.com (mail-la0-f46.google.com [209.85.215.46])
	by mx-z.one.com (Postfix) with ESMTP id D6CC710AF2
	for <filtered@awaresystems.be>; Fri, 14 Jun 2013 18:58:11 +0000 (UTC)
Received: by mail-la0-f46.google.com with SMTP id eg20so842899lab.19
        for <filtered@awaresystems.be>; Fri, 14 Jun 2013 11:59:35 -0700 (PDT)
X-Received: by 10.152.120.105 with SMTP id lb9mr1823619lab.20.1371236375399;
        Fri, 14 Jun 2013 11:59:35 -0700 (PDT)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 10.114.62.81 with SMTP id w17csp47774ldr;
        Fri, 14 Jun 2013 11:59:34 -0700 (PDT)
X-Received: by 10.112.150.68 with SMTP id ug4mr1691338lbb.81.1371236372405;
        Fri, 14 Jun 2013 11:59:32 -0700 (PDT)
DomainKey-Status: good
Received-SPF: neutral (google.com: 91.198.169.249 is neither permitted nor denied by domain of fwarmerdam@gmail.com) client-ip=91.198.169.249;
Received: by 10.152.98.212 with POP3 id ek20mf511313lab.25;
        Fri, 14 Jun 2013 11:59:31 -0700 (PDT)
X-Gmail-Fetch-Info: info@awaresystems.be 1 pop.awaresystems.be 110 info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-r.one.com (mx-r.one.com [91.198.169.249])
	by mail6.local (Postfix) with ESMTP id 4580E8014FAF1
	for <info@awaresystems.be>; Fri, 14 Jun 2013 20:04:27 +0200 (CEST)
Received-SPF: pass (mx-r: domain of fwarmerdam@gmail.com designates 209.85.223.178 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-ie0-f178.google.com (mail-ie0-f178.google.com [209.85.223.178])
	by mx-r.one.com (Postfix) with ESMTP id B20231536759
	for <info@awaresystems.be>; Fri, 14 Jun 2013 18:04:26 +0000 (UTC)
Received: by mail-ie0-f178.google.com with SMTP id u16so2102913iet.9
        for <info@awaresystems.be>; Fri, 14 Jun 2013 11:04:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:sender:in-reply-to:references:date
         :x-google-sender-auth:message-id:subject:from:to:cc:content-type;
        bh=VvjnrQdncO+yhmliwlDk4czUmuctxpkPT8GxUis2Bgk=;
        b=KeBCbN1gONV8ImtVzG4vw10V51Gv+SKXLIxfl+7lx4WuP/1d1SeNEo/6i+E/7V1Ow1
         jlHCFJS7BegFUkmv0l4ZknLvBfxqEkC6U+EVWPfKDdpAEwOoxFav3fU2A/wnprZ4bwXX
         OV+Xqk7GMHu4+p1+sjBvNzYCkbf6BGkSoQnUQfFG6K1aoumLFtd//mTV2TG+sFZQu3Fy
         2gmEL2FaEBrzEJdEFUuzS3FTBhh9yQiqUTk84w/1dQr7FdoQlE1rFzL4D+6dCWBQQyYu
         Op5KgbAJsp4iruIS12d2dB92lYUgUBkCgHRknp3Pie0jLbrTtCyS6XIzv9zhHyI0GaGv
         I4TA==
MIME-Version: 1.0
X-Received: by 10.50.73.226 with SMTP id o2mr1677705igv.22.1371232690272; Fri,
 14 Jun 2013 10:58:10 -0700 (PDT)
Sender: fwarmerdam@gmail.com
Received: by 10.50.39.106 with HTTP; Fri, 14 Jun 2013 10:58:10 -0700 (PDT)
In-Reply-To: <CA+JK5sqNb=PX8iobf9Sro-8vkS0HStniQ+if3evAyqAUOyPZxg@mail.gmail.com>
References: <CA+JK5sqSc6zn5vSGc9egNVTePfQ=mDrCJfSOkJb2CYBJ55rrzw@mail.gmail.com>
	<CDDF6B4D.5EB36%ccox@adobe.com>
	<CA+JK5sqQgsyaWPRY_8nNWzjwmU8N3vZ=BvbSFDuD0NkCdHtpVA@mail.gmail.com>
	<CA+JK5sqNb=PX8iobf9Sro-8vkS0HStniQ+if3evAyqAUOyPZxg@mail.gmail.com>
Date: Fri, 14 Jun 2013 10:58:10 -0700
X-Google-Sender-Auth: qOg6jHk6JTKYlIMQuUB_z_4oU8I
Message-ID: <CA+YzLBeJmXcE6igKZO4Y5paNuZ=xfHy+cWvwLn7HX8t0+yZHmg@mail.gmail.com>
Subject: Re: [Tiff] TIFF Specification Allowance for Multi-Page vs. Reduced
 Res 2nd IFD
From: Frank Warmerdam <warmerdam@pobox.com>
To: Douglas Peterson <dep@digitaltransitions.com>
Cc: Joris Van Damme <info@awaresystems.be>, TIFF <tiff@lists.maptools.org>, 
	Peter Siegel <pes@digitaltransitions.com>
Content-Type: multipart/alternative; boundary=089e011610706882da04df20fd87

--089e011610706882da04df20fd87
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Douglas,

I have run tiffinfo on the file and amoung the tags I see:

    SubIFD Offsets: 79455156

If I rerun tiffinfo like this:

tiffinfo -o  79455156 1_120ASPH_f8_2900ppi_99eff-imagepyramid.tif

I see;

 TIFFFetchNormalTag: Warning, Incompatible type for "RichTIFFIPTC"; tag
ignored.
TIFF Directory at offset 0x4bc63b4 (79455156)
  Subfile Type: reduced-resolution image (1 =3D 0x1)
  Image Width: 3880 Image Length: 5164
  Resolution: 150, 150 pixels/inch
  Bits/Sample: 8
  Compression Scheme: LZW
  Photometric Interpretation: RGB color
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 3
  Rows/Strip: 22
  Planar Configuration: single image plane
  Predictor: horizontal differencing 2 (0x2)

So this seems to be a subifd pyramid level.  It strickes me as slightly odd
that there is only one overview level and it is just a 2x2 downsampling but
it is a pyramid level.  I observe that my GDAL library does *not* honour
this sort of overview via SubIFD which is sad.  I likely ought to fix that.

Best regards,
Frank



On Fri, Jun 14, 2013 at 10:20 AM, Douglas Peterson <
dep@digitaltransitions.com> wrote:

> I've read the Tech Note 1 and explored a TIFF saved with Image Pyramid in
> PS CS6 with JHOVE and TiffUtil. I see no signs of the SubIFD tag anywhere
> in the TIFF I saved with Image Pyramid. Am I missing something?
>
> Here is a link to that file:
> https://www.dropbox.com/s/ziwtxddcirwy4w6/1_120ASPH_f8_2900ppi_99eff-imag=
epyramid.tif
>
> Based on Chris' comment that I should match the structure created when
> selecting Save Image Pyramid I must conclude we are "doing it right" as I
> see no sign of the SubIFD tag in such a file and only a NewSubFileType
> indicating they are reduced resolution versions of the primary. But based
> on Joris' comment we are doing it wrong and should make sure the resultin=
g
> TIFF includes SubIFD references from the primary to the IFD with the
> reduced-resolution-of-primary.
>
> Any further thoughts would be greatly appreciated. I know you've already
> been generous to reply at all.
>
>
> On Thu, Jun 13, 2013 at 3:53 PM, Douglas Peterson <
> dep@digitaltransitions.com> wrote:
>
>> Joris and Chris: thank you both. I'll do just as you suggest as my next
>> avenues of exploration.
>>
>> Thanks for taking the time to reply!
>>
>>
>> On Thu, Jun 13, 2013 at 3:27 PM, Chris Cox <ccox@adobe.com> wrote:
>>
>>>  Save a TIFF from Photoshop with the =93Save Image Pyramid=94 checkbox
>>> enabled.
>>>
>>> Look at the structure, and match it.
>>>
>>> Also, see the SubIFD definition in TIFF Technote 1.
>>>
>>> Chris
>>>
>>>
>>>
>>>
>>> On 6/13/13 8:52 AM, "Douglas Peterson" <dep@digitaltransitions.com>
>>> wrote:
>>>
>>> *Background About Me
>>> *I have put considerable effort into understanding the proper structure
>>> for TIFFs. I've read an Intro to TIFF Creation <
>>> http://paulbourke.net/dataformats/tiff/>  and the NewSubFileType <
>>> http://www.awaresystems.be/imaging/tiff/tifftags/newsubfiletype.html>
>>>  spec and learned to read hex (at an intro level). I have JHOVE and MAC=
 OSX
>>> TiffUtil at my disposal. I say all this not to brag (as I'm sure I'm on=
e of
>>> the least knowledgable members of this mailing list) but only to explai=
n
>>> that I have tried very hard to resolve this issue on my own before
>>> appealing for help from this community.
>>>
>>>
>>> *The Problem
>>> *Our company is having a problem with several software packages reading
>>> our TIFFs as multi-page documents. That is, upon import/ingestion the
>>> software treats the two image IFDs in the TIFF as separate images that
>>> should both be imported.
>>>
>>> Using JHOVE and TiffUtil I see our TIFFs create two IFDs (plus an EXIF
>>> IFD which is presumably not important to this discussion). IFD#0 is the
>>> primary image at full resolution. IFD#1 is a thumbnail of the primary i=
mage.
>>>
>>> We want to continue to provide TIFFs with the IFD that contains a
>>> thumbnail as some users may have incorporated the thumbnails into their
>>> workflows. But we do not want these other programs to see the TIFFs as
>>> multi-page documents.
>>>
>>> Exploring the structure of the TIFFs we are creating I cannot see
>>> anything wrong. IFD#1 is, as far as I can see, set to [Bit 0 =3D True][=
Bit 1
>>> =3D False][Bit 2 =3D False][all other bits =3D False]. Which according =
to the
>>> spec should mean this IFD should be considered [reduced-resolution vers=
ion
>>> of another image in this TIFF file] and not [single page of a multi-pag=
e
>>> image].
>>>
>>>
>>> *My Questions for the Community
>>> *1) Can you please verify that our TIFF is following the specification
>>> regarding tagging IFDs representing thumbnails of the primary image?
>>> 2) Can anyone clarify what the resulting JHOVE/TiffUtil/Hex would be in
>>> the following cases:
>>> --- Bit 0 is set to 1 and bit 1 is set to 1
>>> --- Bit 0 is set to 0 and bit 1 is set to 1
>>> --- Bit 0 is set to 1 and bit 1 is set to 0
>>> --- Bit 0 is set to 0 and bit 1 is set to 0
>>> 3) Is there any consensus on why the specification is written as a
>>> series of bit flags (which allows in theory for a given IFD to be flagg=
ed
>>> as both a multipage document and a reduced resolution version of the
>>> primary image?
>>> 4) What programs/workflows, that might be in use by our customers,
>>> require the IFD with the thumbnail? Put differently, what might "break"=
 if
>>> we elect to not include this thumbnail IFD, resulting in a file with on=
ly
>>> one image IFD (the primary image)?
>>>
>>> The second question is to further my understanding of how the flag bits
>>> work and to add additional verification that we are "doing it right"
>>> already.
>>>
>>>
>>> *Download of small TIFF (referenced in rest of email):
>>> *https://www.dropbox.com/s/x00zamfho852s04/smalltiff.tif
>>> This file is produced by cropping the on screen image before processing=
.
>>> The thumbnail IFD therefore is the same pixel dimensions as the primary
>>> image.
>>>
>>>
>>> *Download of full sized TIF
>>> *
>>> https://www.dropbox.com/s/waoi7kz3bpfo24s/1_120ASPH_f8_2871ppi_99eff.ti=
f
>>> This is a normal (very large) output from our system. The thumbnail IFD
>>> is 160px long by 107px wide.
>>>
>>>
>>> *Relevant Section from a hexdump:
>>> *0039130 01 00 00 00 69 87 04 00 0b 00 fe 00 04 00 01 00
>>> 0039140 00 00 01 00 00 00 00 01 03 00 01 00 00 00 3b 00
>>> 0039150 00 00 01 01 03 00 01 00 00 00 3b 00 00 00 02 01
>>> 0039160 03 00 03 00 00 00 8e ba 03 00 03 01 03 00 01 00
>>>
>>> *My notes
>>> *00 fe =3D 254 =3D Tag for SubFileType
>>> 00 04 =3D 4 =3D Long Int Data Type
>>> 00 01 =3D 1 =3D One Value
>>> 00 00 00 01 =3D 1 =3D bit 0 set to 1 =3D Reduced Resolution Image
>>>
>>>
>>> *Relevant Section of Directory 1 in TiffUtil - dump:
>>> *Directory 1: offset 233784 (0x39138) next 0 (0)
>>> *SubFileType (254) LONG (4) 1<1>
>>> *ImageWidth (256) SHORT (3) 1<59>
>>> ImageLength (257) SHORT (3) 1<59>
>>> BitsPerSample (258) SHORT (3) 3<8 8 8>
>>> Compression (259) SHORT (3) 1<1>
>>> Photometric (262) SHORT (3) 1<2>
>>> StripOffsets (273) LONG (4) 1<233922>
>>> SamplesPerPixel (277) SHORT (3) 1<3>
>>> RowsPerStrip (278) SHORT (3) 1<59>
>>> StripByteCounts (279) LONG (4) 1<10443>
>>> PlanarConfig (284) SHORT (3) 1<1>
>>>
>>>
>>> *Relevant Section of TiffUtil -verboseinfo:
>>> *Directory at 0x39138
>>> *  Subfile Type: reduced-resolution image (1 =3D 0x1)
>>> *  Image Width: 59 Image Length: 59
>>>   Bits/Sample: 8
>>>   Compression Scheme: none
>>>   Photometric Interpretation: RGB color
>>>   Samples/Pixel: 3
>>>   Rows/Strip: 46
>>>   Number of Strips: 2
>>>   Strips (Offset, ByteCount):
>>>      233922, 8142
>>>      242064, 2301
>>>   Planar Configuration: Not planar
>>>
>>> *Relevant Section of JHOVE:
>>> *Download screen grab (125kb) here:
>>> https://www.dropbox.com/s/5xa9biufpdhj1eg/JHOVE-smalltif.tif
>>>
>>> Text Summary: "IFD: Offset 233784, Type TIFF, Entries...
>>> NewSubfileType... *Reduced-Resolution Image of Another Image in this
>>> File*"
>>>
>>>
>>>
>>>
>>
>>
>> --
>>
>> Doug Peterson
>> Digital Transitions
>>
>> *Sales **=95** Rentals **=95** Training **=95** Support*
>> Phase One | Mamiya Leaf | Profoto | Eizo | Arca Swiss | Cambo
>>
>> *Website <http://www.digitaltransitions.com/> **=95** Blog<http://www.di=
gitaltransitions.com/blog/dt-blog>
>>  =95 RSS <http://www.digitaltransitions.com/rss.php> **=95** FaceBook<ht=
tp://www.facebook.com/pages/Digital-Transitions/45031551988>
>> ** **=95** **Rental Request<http://www.digitaltransitions.com/contact/re=
ntal-request>
>> **
>>
>> *
>> Cell     740.707.2183
>> Office  212.529.6825 x235
>> Fax     212.504.2713
>>
>
>
>
> --
>
> Doug Peterson
> Digital Transitions
>
> *Sales **=95** Rentals **=95** Training **=95** Support*
> Phase One | Mamiya Leaf | Profoto | Eizo | Arca Swiss | Cambo
>
> *Website <http://www.digitaltransitions.com/> **=95** Blog<http://www.dig=
italtransitions.com/blog/dt-blog>
>  =95 RSS <http://www.digitaltransitions.com/rss.php> **=95** FaceBook<htt=
p://www.facebook.com/pages/Digital-Transitions/45031551988>
> ** **=95** **Rental Request<http://www.digitaltransitions.com/contact/ren=
tal-request>
> **
>
> *
> Cell     740.707.2183
> Office  212.529.6825 x235
> Fax     212.504.2713
>
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/
>



--=20
---------------------------------------+-----------------------------------=
---
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Software Developer

--089e011610706882da04df20fd87
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Douglas,=A0<div><br></div><div>I have run tiffinfo on the =
file and amoung the tags I see:</div><div><br></div><div>=A0 =A0 SubIFD Off=
sets: 79455156</div><div><br></div><div style>If I rerun tiffinfo like this=
:</div>
<div style><br></div><div style>tiffinfo -o =A079455156 1_120ASPH_f8_2900pp=
i_99eff-imagepyramid.tif<br></div><div style><br></div><div style>I see;</d=
iv><div style><br></div><div style>=A0TIFFFetchNormalTag: Warning, Incompat=
ible type for &quot;RichTIFFIPTC&quot;; tag ignored.</div>
<div>TIFF Directory at offset 0x4bc63b4 (79455156)</div><div>=A0 Subfile Ty=
pe: reduced-resolution image (1 =3D 0x1)</div><div>=A0 Image Width: 3880 Im=
age Length: 5164</div><div>=A0 Resolution: 150, 150 pixels/inch</div><div>=
=A0 Bits/Sample: 8</div>
<div>=A0 Compression Scheme: LZW</div><div>=A0 Photometric Interpretation: =
RGB color</div><div>=A0 Orientation: row 0 top, col 0 lhs</div><div>=A0 Sam=
ples/Pixel: 3</div><div>=A0 Rows/Strip: 22</div><div>=A0 Planar Configurati=
on: single image plane</div>
<div>=A0 Predictor: horizontal differencing 2 (0x2)</div><div><br></div><di=
v style>So this seems to be a subifd pyramid level. =A0It strickes me as sl=
ightly odd that there is only one overview level and it is just a 2x2 downs=
ampling but it is a pyramid level. =A0I observe that my GDAL library does *=
not* honour this sort of overview via SubIFD which is sad. =A0I likely ough=
t to fix that.</div>
<div style><br></div><div style>Best regards,</div><div style>Frank</div><d=
iv style><br></div></div><div class=3D"gmail_extra"><br><br><div class=3D"g=
mail_quote">On Fri, Jun 14, 2013 at 10:20 AM, Douglas Peterson <span dir=3D=
"ltr">&lt;<a href=3D"mailto:dep@digitaltransitions.com" target=3D"_blank">d=
ep@digitaltransitions.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr">I&#39;ve read the Tech Note=
 1 and explored a TIFF saved with Image Pyramid in PS CS6 with JHOVE and Ti=
ffUtil. I see no signs of the SubIFD tag anywhere in the TIFF I saved with =
Image Pyramid. Am I missing something?=A0<div>

<br></div><div>Here is a link to that file:=A0<a href=3D"https://www.dropbo=
x.com/s/ziwtxddcirwy4w6/1_120ASPH_f8_2900ppi_99eff-imagepyramid.tif" target=
=3D"_blank">https://www.dropbox.com/s/ziwtxddcirwy4w6/1_120ASPH_f8_2900ppi_=
99eff-imagepyramid.tif</a></div>

<div><div><div><br></div><div>Based on Chris&#39; comment that I should mat=
ch the structure created when selecting Save Image=A0Pyramid=A0I must concl=
ude we are &quot;doing it right&quot; as I see no sign of the SubIFD tag in=
 such a file and only a NewSubFileType indicating they are reduced resoluti=
on versions of the primary. But based on Joris&#39; comment we are doing it=
 wrong and should make sure the resulting TIFF includes SubIFD references f=
rom the primary to the IFD with the reduced-resolution-of-primary.</div>

</div><div><br></div><div>Any further thoughts would be greatly appreciated=
. I know you&#39;ve already been generous to reply at all.</div></div></div=
><div class=3D"HOEnZb"><div class=3D"h5"><div class=3D"gmail_extra"><br><br=
>
<div class=3D"gmail_quote">
On Thu, Jun 13, 2013 at 3:53 PM, Douglas Peterson <span dir=3D"ltr">&lt;<a =
href=3D"mailto:dep@digitaltransitions.com" target=3D"_blank">dep@digitaltra=
nsitions.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir=3D"ltr">Joris and Chris: thank you both. I&#39;ll do just as you s=
uggest as my next avenues of exploration.=A0<div><br></div><div>Thanks for =
taking the time to reply!</div></div><div class=3D"gmail_extra"><div><div>
<br><br><div class=3D"gmail_quote">
On Thu, Jun 13, 2013 at 3:27 PM, Chris Cox <span dir=3D"ltr">&lt;<a href=3D=
"mailto:ccox@adobe.com" target=3D"_blank">ccox@adobe.com</a>&gt;</span> wro=
te:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-=
left:1px #ccc solid;padding-left:1ex">





<div>
<font face=3D"Myriad Pro"><span style=3D"font-size:10pt">Save a TIFF from P=
hotoshop with the =93Save Image Pyramid=94 checkbox enabled.<br>
<br>
Look at the structure, and match it.<br>
<br>
Also, see the SubIFD definition in TIFF Technote 1.<br>
<br>
Chris<div><br>
<br>
<br>
<br>
On 6/13/13 8:52 AM, &quot;Douglas Peterson&quot; &lt;<a href=3D"http://dep@=
digitaltransitions.com" target=3D"_blank">dep@digitaltransitions.com</a>&gt=
; wrote:<br>
<br>
</div></span></font><blockquote><font face=3D"Myriad Pro"><font size=3D"5">=
<span style=3D"font-size:14pt"><b>Background About Me<br>
</b></span></font><span style=3D"font-size:10pt">I have put considerable ef=
fort into understanding the proper structure for TIFFs. I&#39;ve read an In=
tro to TIFF Creation &lt;<a href=3D"http://paulbourke.net/dataformats/tiff/=
" target=3D"_blank">http://paulbourke.net/dataformats/tiff/</a>&gt; =A0and =
the NewSubFileType &lt;<a href=3D"http://www.awaresystems.be/imaging/tiff/t=
ifftags/newsubfiletype.html" target=3D"_blank">http://www.awaresystems.be/i=
maging/tiff/tifftags/newsubfiletype.html</a>&gt; =A0spec and learned to rea=
d hex (at an intro level). I have JHOVE and MAC OSX TiffUtil at my disposal=
. I say all this not to brag (as I&#39;m sure I&#39;m one of the least know=
ledgable members of this mailing list) but only to explain that I have trie=
d very hard to resolve this issue on my own before appealing for help from =
this community.<br>



<br>
<br>
</span><div><div><font size=3D"5"><span style=3D"font-size:14pt"><b>The Pro=
blem<br>
</b></span></font><span style=3D"font-size:10pt">Our company is having a pr=
oblem with several software packages reading our TIFFs as multi-page docume=
nts. That is, upon import/ingestion the software treats the two image IFDs =
in the TIFF as separate images that should both be imported.<br>



<br>
Using JHOVE and TiffUtil I see our TIFFs create two IFDs (plus an EXIF IFD =
which is presumably not important to this discussion). IFD#0 is the primary=
 image at full resolution. IFD#1 is a thumbnail of the primary image.<br>



<br>
We want to continue to provide TIFFs with the IFD that contains a thumbnail=
 as some users may have incorporated the thumbnails into their workflows. B=
ut we do not want these other programs to see the TIFFs as multi-page docum=
ents.=A0<br>



<br>
Exploring the structure of the TIFFs we are creating I cannot see anything =
wrong. IFD#1 is, as far as I can see, set to [Bit 0 =3D True][Bit 1 =3D Fal=
se][Bit 2 =3D False][all other bits =3D False]. Which according to the spec=
 should mean this IFD should be considered [reduced-resolution version of a=
nother image in this TIFF file] and not [single page of a multi-page image]=
.<br>



<br>
<br>
</span><font size=3D"5"><span style=3D"font-size:14pt"><b>My Questions for =
the Community<br>
</b></span></font><span style=3D"font-size:10pt">1) Can you please verify t=
hat our TIFF is following the specification regarding tagging IFDs represen=
ting thumbnails of the primary image?<br>
2) Can anyone clarify what the resulting JHOVE/TiffUtil/Hex would be in the=
 following cases:<br>
--- Bit 0 is set to 1 and bit 1 is set to 1<br>
--- Bit 0 is set to 0 and bit 1 is set to 1<br>
--- Bit 0 is set to 1 and bit 1 is set to 0<br>
--- Bit 0 is set to 0 and bit 1 is set to 0<br>
3) Is there any consensus on why the specification is written as a series o=
f bit flags (which allows in theory for a given IFD to be flagged as both a=
 multipage document and a reduced resolution version of the primary image?<=
br>



4) What programs/workflows, that might be in use by our customers, require =
the IFD with the thumbnail? Put differently, what might &quot;break&quot; i=
f we elect to not include this thumbnail IFD, resulting in a file with only=
 one image IFD (the primary image)?<br>



<br>
The second question is to further my understanding of how the flag bits wor=
k and to add=A0additional=A0verification that we are &quot;doing it right&q=
uot; already.<br>
<br>
<br>
</span><font size=3D"5"><span style=3D"font-size:14pt"><b>Download of small=
 TIFF (referenced in rest of email):<br>
</b></span></font><span style=3D"font-size:10pt"><a href=3D"https://www.dro=
pbox.com/s/x00zamfho852s04/smalltiff.tif" target=3D"_blank">https://www.dro=
pbox.com/s/x00zamfho852s04/smalltiff.tif</a><br>
This file is produced by cropping the on screen image before processing. Th=
e thumbnail IFD therefore is the same pixel dimensions as the primary image=
.<br>
<br>
<br>
</span><font size=3D"5"><span style=3D"font-size:14pt"><b>Download of full =
sized TIF<br>
</b></span></font><span style=3D"font-size:10pt"><a href=3D"https://www.dro=
pbox.com/s/waoi7kz3bpfo24s/1_120ASPH_f8_2871ppi_99eff.tif" target=3D"_blank=
">https://www.dropbox.com/s/waoi7kz3bpfo24s/1_120ASPH_f8_2871ppi_99eff.tif<=
/a><br>



This is a normal (very large) output from our system. The thumbnail IFD is =
160px long by 107px wide.<br>
<br>
<br>
</span><font size=3D"5"><span style=3D"font-size:14pt"><b>Relevant Section =
from a hexdump:<br>
</b></span></font><span style=3D"font-size:10pt">0039130 01 00 00 00 69 87 =
04 00 0b 00 fe=A000 04 00 01 00<br>
0039140 00 00 01 00 00 00 00 01 03 00 01 00 00 00 3b 00<br>
0039150 00 00 01 01 03 00 01 00 00 00 3b 00 00 00 02 01<br>
0039160 03 00 03 00 00 00 8e ba 03 00 03 01 03 00 01 00<br>
<br>
<i>My notes<br>
</i>00 fe =3D 254 =3D Tag for SubFileType<br>
00 04 =3D 4 =3D Long Int Data Type<br>
00 01 =3D 1 =3D One Value<br>
00 00 00 01 =3D 1 =3D bit 0 set to 1 =3D Reduced Resolution Image<br>
<br>
<br>
</span><font size=3D"5"><span style=3D"font-size:14pt"><b>Relevant Section =
of Directory 1 in TiffUtil - dump:<br>
</b></span></font><span style=3D"font-size:10pt">Directory 1: offset 233784=
 (0x39138) next 0 (0)<br>
<b>SubFileType (254) LONG (4) 1&lt;1&gt;<br>
</b>ImageWidth (256) SHORT (3) 1&lt;59&gt;<br>
ImageLength (257) SHORT (3) 1&lt;59&gt;<br>
BitsPerSample (258) SHORT (3) 3&lt;8 8 8&gt;<br>
Compression (259) SHORT (3) 1&lt;1&gt;<br>
Photometric (262) SHORT (3) 1&lt;2&gt;<br>
StripOffsets (273) LONG (4) 1&lt;233922&gt;<br>
SamplesPerPixel (277) SHORT (3) 1&lt;3&gt;<br>
RowsPerStrip (278) SHORT (3) 1&lt;59&gt;<br>
StripByteCounts (279) LONG (4) 1&lt;10443&gt;<br>
PlanarConfig (284) SHORT (3) 1&lt;1&gt;<br>
<br>
<br>
</span><font size=3D"5"><span style=3D"font-size:14pt"><b>Relevant Section =
of TiffUtil -verboseinfo:<br>
</b></span></font><span style=3D"font-size:10pt">Directory at 0x39138<br>
<b>=A0 Subfile Type: reduced-resolution image (1 =3D 0x1)<br>
</b>=A0 Image Width: 59 Image Length: 59<br>
=A0 Bits/Sample: 8<br>
=A0 Compression Scheme: none<br>
=A0 Photometric Interpretation: RGB color<br>
=A0 Samples/Pixel: 3<br>
=A0 Rows/Strip: 46<br>
=A0 Number of Strips: 2<br>
=A0 Strips (Offset, ByteCount):<br>
=A0 =A0 =A0233922, 8142<br>
=A0 =A0 =A0242064, 2301<br>
=A0 Planar Configuration: Not planar<br>
<br>
</span><font size=3D"5"><span style=3D"font-size:14pt"><b>Relevant Section =
of JHOVE:<br>
</b></span></font><span style=3D"font-size:10pt">Download screen grab (125k=
b) here:<br>
<a href=3D"https://www.dropbox.com/s/5xa9biufpdhj1eg/JHOVE-smalltif.tif" ta=
rget=3D"_blank">https://www.dropbox.com/s/5xa9biufpdhj1eg/JHOVE-smalltif.ti=
f</a><br>
<br>
Text Summary: &quot;IFD: Offset 233784, Type TIFF, Entries... NewSubfileTyp=
e... <b>Reduced-Resolution Image of Another Image in this File</b>&quot;<br=
>
<br>
<br>
<br>
</span></div></div></font></blockquote>
</div>


</blockquote></div><br><br clear=3D"all"><div><br></div></div></div><div>--=
 <br><br><div>Doug Peterson</div><div>Digital Transitions</div><div><font s=
ize=3D"1"><div><br></div><div><b>Sales=A0</b><b><font color=3D"#999999">=95=
</font></b><b>=A0Rentals=A0</b><b><font color=3D"#999999">=95</font></b><b>=
=A0Training=A0</b><b><font color=3D"#999999">=95</font></b><b>=A0Support</b=
></div>


<div>Phase One <font color=3D"#999999">|</font> Mamiya Leaf=A0<span style=
=3D"color:rgb(153,153,153)">|</span>=A0Profoto=A0<span style=3D"color:rgb(1=
53,153,153)">|</span>=A0Eizo=A0<span style=3D"color:rgb(153,153,153)">|</sp=
an>=A0Arca Swiss=A0<span style=3D"color:rgb(153,153,153)">|</span>=A0Cambo<=
/div>


</font></div><div><font size=3D"1"><br></font></div><div><div><font size=3D=
"1"><b><a href=3D"http://www.digitaltransitions.com/" target=3D"_blank">Web=
site</a>=A0</b></font><b style=3D"font-size:x-small"><font color=3D"#999999=
">=95</font></b><font size=3D"1"><b>=A0<a href=3D"http://www.digitaltransit=
ions.com/blog/dt-blog" target=3D"_blank">Blog</a>=A0<font color=3D"#999999"=
>=95</font>=A0<a href=3D"http://www.digitaltransitions.com/rss.php" target=
=3D"_blank">RSS</a>=A0</b></font><b style=3D"font-size:x-small"><font color=
=3D"#999999">=95</font></b><font size=3D"1"><b>=A0<a href=3D"http://www.fac=
ebook.com/pages/Digital-Transitions/45031551988" target=3D"_blank">FaceBook=
</a></b></font><font size=3D"1"><b>=A0</b></font><b style=3D"font-size:x-sm=
all"><font color=3D"#999999">=95</font></b><font size=3D"1"><b>=A0</b></fon=
t><font size=3D"1"><b><a href=3D"http://www.digitaltransitions.com/contact/=
rental-request" target=3D"_blank">Rental Request</a></b></font><font size=
=3D"1"><b><br>


<br></b></font></div></div><div><span style=3D"font-size:x-small">Cell =A0 =
=A0 <a href=3D"tel:740.707.2183" value=3D"+17407072183" target=3D"_blank">7=
40.707.2183</a></span></div><div><font size=3D"1">Office =A0<a href=3D"tel:=
212.529.6825%20x235" value=3D"+12125296825" target=3D"_blank">212.529.6825 =
x235</a></font></div>

<div><font size=3D"1">Fax =A0 =A0 <a href=3D"tel:212.504.2713" value=3D"+12=
125042713" target=3D"_blank">212.504.2713</a></font></div>
</div></div>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><br><div>Dou=
g Peterson</div><div>Digital Transitions</div><div><font size=3D"1"><div><b=
r></div><div><b>Sales=A0</b><b><font color=3D"#999999">=95</font></b><b>=A0=
Rentals=A0</b><b><font color=3D"#999999">=95</font></b><b>=A0Training=A0</b=
><b><font color=3D"#999999">=95</font></b><b>=A0Support</b></div>

<div>Phase One <font color=3D"#999999">|</font> Mamiya Leaf=A0<span style=
=3D"color:rgb(153,153,153)">|</span>=A0Profoto=A0<span style=3D"color:rgb(1=
53,153,153)">|</span>=A0Eizo=A0<span style=3D"color:rgb(153,153,153)">|</sp=
an>=A0Arca Swiss=A0<span style=3D"color:rgb(153,153,153)">|</span>=A0Cambo<=
/div>

</font></div><div><font size=3D"1"><br></font></div><div><div><font size=3D=
"1"><b><a href=3D"http://www.digitaltransitions.com/" target=3D"_blank">Web=
site</a>=A0</b></font><b style=3D"font-size:x-small"><font color=3D"#999999=
">=95</font></b><font size=3D"1"><b>=A0<a href=3D"http://www.digitaltransit=
ions.com/blog/dt-blog" target=3D"_blank">Blog</a>=A0<font color=3D"#999999"=
>=95</font>=A0<a href=3D"http://www.digitaltransitions.com/rss.php" target=
=3D"_blank">RSS</a>=A0</b></font><b style=3D"font-size:x-small"><font color=
=3D"#999999">=95</font></b><font size=3D"1"><b>=A0<a href=3D"http://www.fac=
ebook.com/pages/Digital-Transitions/45031551988" target=3D"_blank">FaceBook=
</a></b></font><font size=3D"1"><b>=A0</b></font><b style=3D"font-size:x-sm=
all"><font color=3D"#999999">=95</font></b><font size=3D"1"><b>=A0</b></fon=
t><font size=3D"1"><b><a href=3D"http://www.digitaltransitions.com/contact/=
rental-request" target=3D"_blank">Rental Request</a></b></font><font size=
=3D"1"><b><br>

<br></b></font></div></div><div><span style=3D"font-size:x-small">Cell =A0 =
=A0 <a href=3D"tel:740.707.2183" value=3D"+17407072183" target=3D"_blank">7=
40.707.2183</a></span></div><div><font size=3D"1">Office =A0<a href=3D"tel:=
212.529.6825%20x235" value=3D"+12125296825" target=3D"_blank">212.529.6825 =
x235</a></font></div>
<div><font size=3D"1">Fax =A0 =A0 <a href=3D"tel:212.504.2713" value=3D"+12=
125042713" target=3D"_blank">212.504.2713</a></font></div>
</div>
</div></div><br>_______________________________________________<br>
Tiff mailing list: <a href=3D"mailto:Tiff@lists.maptools.org">Tiff@lists.ma=
ptools.org</a><br>
<a href=3D"http://lists.maptools.org/mailman/listinfo/tiff" target=3D"_blan=
k">http://lists.maptools.org/mailman/listinfo/tiff</a><br>
<a href=3D"http://www.remotesensing.org/libtiff/" target=3D"_blank">http://=
www.remotesensing.org/libtiff/</a><br></blockquote></div><br><br clear=3D"a=
ll"><div><br></div>-- <br>---------------------------------------+---------=
-----------------------------<br>
I set the clouds in motion - turn up=A0=A0 | Frank Warmerdam, <a href=3D"ma=
ilto:warmerdam@pobox.com" target=3D"_blank">warmerdam@pobox.com</a><br>ligh=
t and sound - activate the windows | <a href=3D"http://pobox.com/~warmerdam=
" target=3D"_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush=A0 =A0 | Geospatial Software Developer<=
br>
</div>

--089e011610706882da04df20fd87--
