Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas008.isp.belgacom.be (localhost [127.0.0.1])
        by inav001.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AV-3.00) with ESMTP id k8KF3Ovs029866
        for <joris.at.lebbeke@skynet.be>; Wed, 20 Sep 2006 17:03:24 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx020.isp.belgacom.be (inmx020.isp.belgacom.be [195.238.5.139])
        by inas008.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AS-2.03) with ESMTP id k8KF3HGI008236
        for <joris.at.lebbeke@skynet.be>; Wed, 20 Sep 2006 17:03:18 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx020.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id k8KF36BA012548
        for <joris.at.lebbeke@skynet.be>; Wed, 20 Sep 2006 17:03:06 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k8KEgIXv026797;
	Wed, 20 Sep 2006 10:42:24 -0400
Received: from zynlfw01.zylab.com (mx.zylab.com [194.178.9.130])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k8KEgFJv026794
	for <tiff@lists.maptools.org>; Wed, 20 Sep 2006 10:42:16 -0400
Received: from zynlms01.ZyLAB.WAN (zynlms01.zylab.wan [192.168.1.10])
	by zynlfw01.zylab.com (Postfix) with ESMTP id B9FCF2A4;
	Wed, 20 Sep 2006 16:14:25 +0200 (CEST)
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Subject: Re: [Tiff] <1 bit raw file for tiff file format>
Date: Wed, 20 Sep 2006 16:42:07 +0200
Message-ID: <FC840EC0BF7BFA45A0F94548AF36920D020CA5D8@zynlms01.ZyLAB.WAN>
In-Reply-To: <001601c6dc7d$72cf9fb0$2e516c6b@sisodomain.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Tiff] <1 bit raw file for tiff file format>
Thread-Index: AcbcghW3r0XuEdmPQ8e2vr0VwV5PtQAP2GgA
From: "Gerben Vos" <Gerben@zylab.com>
To: <tiff@lists.maptools.org>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by duke.maptools.org id
	k8KEgFJv026794
Cc: 
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
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>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.00001aa2
X-MSP-STORE: Wed, 20 Sep 2006 17:03:32 +0200
Status:   

Geeta Sharma wrote:

> If I take the raw file (RAW_1_bit_180 x 145.raw) and save it as TIFF
> file in Irfan view with No compression.
> Stripbyte count in the generated tiff file(RAW_1_bit_180 x 145
> _Irfan_none.tif) is less than the raw data in  the raw file.

180 pixels horizontal fits in ceil(180 / 8) = 23 bytes,
and 23 x 145 = 3335.

So all pixels should be there.

Most probably, the original raw image aligned the scanlines on two-byte
boundaries instead of on single-byte boundaries like in TIFF, because
24 x 145 = 3480 = the size of the original raw file.

You could try to convert the raw file as a 192 x 145 pixel image to see
the padding bits as pixels (24 x 8 = 192).

					Gerben Vos.

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
