Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx-k.one.com (mx-k.one.com [91.198.169.58])
	by mail6.b-one.net (Postfix) with ESMTP id D0D45801500D0
	for <filtered@awaresystems.be>; Mon, 27 Aug 2012 18:19:59 +0200 (CEST)
X-Virus-Scanned: by one.com
Received-SPF: pass (mx-k: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.212.48 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48])
	by mx-k.one.com (Postfix) with ESMTP id 6DA9DFE0D4E
	for <filtered@awaresystems.be>; Mon, 27 Aug 2012 16:19:59 +0000 (UTC)
Received: by vbme21 with SMTP id e21so4140566vbm.21
        for <filtered@awaresystems.be>; Mon, 27 Aug 2012 09:19:58 -0700 (PDT)
Received: by 10.52.95.174 with SMTP id dl14mr10145801vdb.8.1346084398368;
        Mon, 27 Aug 2012 09:19:58 -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.58.70.138 with SMTP id m10csp297662veu;
        Mon, 27 Aug 2012 09:19:57 -0700 (PDT)
Received: by 10.58.234.104 with SMTP id ud8mr13285259vec.3.1346084396084;
        Mon, 27 Aug 2012 09:19:56 -0700 (PDT)
Received-SPF: neutral (google.com: 91.198.169.249 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) client-ip=91.198.169.249;
Received: by 10.220.204.74 with POP3 id fl10mf6949305vcb.19;
        Mon, 27 Aug 2012 09:19:55 -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.b-one.net (Postfix) with ESMTP id C3E4D801500D0
	for <info@awaresystems.be>; Mon, 27 Aug 2012 18:08:09 +0200 (CEST)
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-r.one.com (Postfix) with ESMTP id 570E611699E4
	for <info@awaresystems.be>; Mon, 27 Aug 2012 16:08:09 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 9A11A43A3D5;
	Mon, 27 Aug 2012 11:07:03 -0500 (EST)
Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com
	[209.85.212.180])
	by lists.maptools.org (Postfix) with ESMTPS id 4CEDA43A3C7
	for <tiff@lists.maptools.org>; Mon, 27 Aug 2012 11:06:57 -0500 (EST)
Received: by wibhm6 with SMTP id hm6so2812309wib.9
	for <tiff@lists.maptools.org>; Mon, 27 Aug 2012 09:06:57 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.245.135 with SMTP id o7mr6796105wer.40.1346083617356; Mon,
	27 Aug 2012 09:06:57 -0700 (PDT)
Received: by 10.194.94.225 with HTTP; Mon, 27 Aug 2012 09:06:57 -0700 (PDT)
In-Reply-To: <503B9777.2010103@howardsilvan.com>
References: <CAMH7Hb-jx6+39sjf6L--na=VfgkA8GzgqiickLKfF4Fnrnfihw@mail.gmail.com>
	<503B9777.2010103@howardsilvan.com>
Date: Mon, 27 Aug 2012 10:06:57 -0600
Message-ID: <CAMH7Hb-KU6JUF3Kw5=3nVXd1OvhpZNCMaUeOyP6VsY8YMbh4uw@mail.gmail.com>
From: Aaron Trewern <aaron.trewern@gmail.com>
To: Lee Howard <faxguy@howardsilvan.com>
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] Unitless TIFF file results in page size in points
 instead of inches
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: aaron.trewern@gmail.com
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

Lee,

Thank you for responding.

It is not clear from your reply whether you mean I should recreate the
TIFF files with the units set correctly and then convert them, or if I
can specify some command line parameters to override the unitless
setting. If you mean the latter then I have tried that with no
success, which I guess means I have to pre-process these files that do
not have the units set :(


root# tiff2pdf -u i -o inches.pdf 9179_0.tif
root# pdfinfo inches.pdf
Producer:       libtiff / tiff2pdf - 20060323
CreationDate:   Mon Aug 27 09:53:41 2012
ModDate:        Mon Aug 27 09:53:41 2012
Tagged:         no
Pages:          2
Encrypted:      no
Page size:      8.5333 x 11 pts
File size:      155713 bytes
Optimized:      no
PDF version:    1.1

root# tiff2pdf -r o -u i -o inches.pdf 9179_0.tif
root# pdfinfo inches.pdf
Producer:       libtiff / tiff2pdf - 20060323
CreationDate:   Mon Aug 27 09:53:10 2012
ModDate:        Mon Aug 27 09:53:10 2012
Tagged:         no
Pages:          2
Encrypted:      no
Page size:      8.5333 x 11 pts
File size:      155713 bytes
Optimized:      no
PDF version:    1.1


On Mon, Aug 27, 2012 at 9:51 AM, Lee Howard <faxguy@howardsilvan.com> wrote:
> On 08/27/2012 08:44 AM, Aaron Trewern wrote:
>>
>> I have a TIFF file with the details below. I expected tiff2pdf to
>> convert this to a letter size (8.5x11") page instead the result a PDF
>> file with a page size 8.5x11 points ~ 0.12x0.15 inches.
>>
>>
>> The man page implied that the default unit was inches but it looks the
>> source simply divides the image width by the resolution to get the PDF
>> page width in points.
>>
>> Is this the expected behaviour?
>
> ....
>
>> TIFF Directory at offset 0x8 (8)
>>    Image Width: 2560 Image Length: 3300
>>    Resolution: 300, 300 (unitless)
>>    Compression Scheme: CCITT Group 4
>>    Photometric Interpretation: min-is-black
>>    Samples/Pixel: 1
>>    Rows/Strip: 1
>>    Planar Configuration: single image plane
>
>
> I can't speak to the documentation concerns, but when a TIFF image is
> unitless the assumption, then, is that those are Postscript units... at
> least by PDF and Postscript images.
>
> If that image is 300x300 dpi then you need to put a units in there of
> inches.
>
> Thanks,
>
> Lee.
>
>
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
