X-Account-Key: account1
X-UIDL: 3822e766a613d6f14a34f1304e9470e5
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:                                                                                 
Received: from lists.maptools.org (lothlorien.howardsilvan.com [127.0.0.1])
	by mail.howardsilvan.com (Postfix) with ESMTPS id 435F3672195
	for <faxguy@howardsilvan.com>; Tue, 10 Mar 2015 03:46:06 -0700 (PDT)
Received: from lists.maptools.org ([94.23.4.142] helo=lists.maptools.org)
	by lothlorien.howardsilvan.com
	with SMTP (2.3.3); 10 Mar 2015	03:46:05 -0800
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 3EC3135C045;
	Tue, 10 Mar 2015 05:44:57 -0500 (EST)
Received: from DUB004-OMC1S15.hotmail.com (dub004-omc1s15.hotmail.com	[157.55.0.214])
	by lists.maptools.org (Postfix) with ESMTPS id 690AA35C042
	for <tiff@lists.maptools.org>; Tue, 10 Mar 2015 05:43:56 -0500 (EST)
Received: from DUB114-W50 ([157.55.0.239])
	by DUB004-OMC1S15.hotmail.com over	TLS secured channel
	with Microsoft SMTPSVC(7.5.7601.22751); 	Tue, 10 Mar 2015 03:44:07 -0700
X-TMN: [qaMitDSczmGDSRIbGDxc4kQ4UQ2NL2h3]
X-Originating-Email: [eobrasil@hotmail.com]
Message-ID: <DUB114-W5011BF8B3488A41AB16317C2180@phx.gbl>
From: pat 000 <eobrasil@hotmail.com>
To: "tiff@lists.maptools.org" <tiff@lists.maptools.org>
Date: Tue, 10 Mar 2015 11:44:06 +0100
Importance: Normal
MIME-Version: 1.0
X-OriginalArrivalTime: 10 Mar 2015 10:44:07.0100 (UTC)
	FILETIME=[2247F7C0:01D05B1F]
Subject: [Tiff] How to convert FAX FILE CCITT3 to TIFF
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
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>
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-Assp-ID: lothlorien.howardsilvan.com m1-84366-06746
X-Assp-Session: 1687EA40 (mail 1)
X-Assp-Detected-RIP: 157.55.0.239, 157.55.0.214
X-Assp-Source-IP: 157.55.0.239
X-Assp-Envelope-From: tiff-bounces@lists.maptools.org
X-Assp-Intended-For: faxguy@howardsilvan.com
X-Assp-Version: 2.3.3(14029) on lothlorien.howardsilvan.com
X-Assp-Server-TLS: yes
X-Assp-Delay: not delayed (whitelisted); 10 Mar 2015 03:46:06 -0800
X-Assp-Whitelisted: Yes (whitelistdb)
Return-Path: tiff-bounces@lists.maptools.org
Content-Type: multipart/mixed;
	boundary="===============1991537610=="


--===============1991537610==
Content-Type: multipart/alternative;
	boundary="_9ba364cd-a8e6-4981-8892-8b1fe32a380b_"


--_9ba364cd-a8e6-4981-8892-8b1fe32a380b_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello=2C
Before everything=2C sorry for my poor English (I'm french)...
I have some questions about converting a Fax Raw file CCIITT 3 to TIFF. I m=
ust write a programme that convert these files.
Before i used the "fax2tiff" program with the following command line: "fax2=
tiff source -o result.tif  -L -1 -R 98".
I don't know the differents step to process the conversion. I tried somethi=
ng to begin

Here are my differents steps

1) I open the output file in writting mode
2) I Set the differents TAG with TIFFSetField Routine for the output file
  - TIFFTAG_IMAGEWIDTH =3D 1728
  - TIFFTAG_BITPERSAMPLE =3D 1
  - TIFFTAG_COMPRESSION =3D COMPRESSION_CCITTFAX3
  - TIFFTAG_PHOTOMETRIC =3D PHOTOMETRIC_MINISWHITE
  - TIFFTAG_ORIENTATION =3D ORIENTATION_TOPLEFT
- TIFFTAG_SAMPLEPERPIXEL =3D 1
- TIFFTAG_GROUP3OPTIONS =3D 0
- TIFFTAG_FAXMODE =3D  FAXMODE_CLASSF
- TIFFTAG_ROWSPERSTRIP =3D=20
- TIFFTAG_PLANARCONFIG =3D PLANARCONFIG_CONTIG
- TIFFTAG_FILLORDER =3D FILLORDER_LSB2MSB
- TIFFTAG_SOFTWARE =3D "faxConverter"
- TIFFTAG_XRESOLUTION =3D 204.0
- TIFFTAG_YRESOLUTION =3D 98.0
- TIFFTAG_RESOLTIONUNIT =3D RESUNIT_INCH=3B
3) I open the Input file=20
 FILE * file =3D fopen("inputfile"=2C "r")=3B

After i don't know how to go on ?=20
I don't know how to read the input file. Must i read the entire file with o=
ne read() ?
How must i write the data into the output file ?
=20
Thank you!
 		 	   		  =

--_9ba364cd-a8e6-4981-8892-8b1fe32a380b_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 12pt=3B
font-family:Calibri
}
--></style></head>
<body class=3D'hmmessage'><div dir=3D'ltr'>Hello=2C<br>Before everything=2C=
 sorry for my poor English (I'm french)...<br>I have some questions about c=
onverting a Fax Raw file CCIITT 3 to TIFF. I must write a programme that co=
nvert these files.<br>Before i used the "fax2tiff" program with the followi=
ng command line: "fax2tiff source -o result.tif&nbsp=3B -L -1 -R 98".<br>I =
don't know the differents step to process the conversion. I tried something=
 to begin<br><br>Here are my differents steps<br><br>1) I open the output f=
ile in writting mode<br>2) I Set the differents TAG with TIFFSetField Routi=
ne for the output file<br>&nbsp=3B - TIFFTAG_IMAGEWIDTH =3D 1728<br>&nbsp=
=3B - TIFFTAG_BITPERSAMPLE =3D 1<br>&nbsp=3B - TIFFTAG_COMPRESSION =3D COMP=
RESSION_CCITTFAX3<br>&nbsp=3B - TIFFTAG_PHOTOMETRIC =3D PHOTOMETRIC_MINISWH=
ITE<br>&nbsp=3B - TIFFTAG_ORIENTATION =3D ORIENTATION_TOPLEFT<br>- TIFFTAG_=
SAMPLEPERPIXEL =3D 1<br>- TIFFTAG_GROUP3OPTIONS =3D 0<br>- TIFFTAG_FAXMODE =
=3D&nbsp=3B FAXMODE_CLASSF<br>- TIFFTAG_ROWSPERSTRIP =3D <br>- TIFFTAG_PLAN=
ARCONFIG =3D PLANARCONFIG_CONTIG<br>- TIFFTAG_FILLORDER =3D FILLORDER_LSB2M=
SB<br>- TIFFTAG_SOFTWARE =3D "faxConverter"<br>- TIFFTAG_XRESOLUTION =3D 20=
4.0<br>- TIFFTAG_YRESOLUTION =3D 98.0<br>- TIFFTAG_RESOLTIONUNIT =3D RESUNI=
T_INCH=3B<br>3) I open the Input file <br>&nbsp=3BFILE * file =3D fopen("in=
putfile"=2C "r")=3B<br><br>After i don't know how to go on ? <br>I don't kn=
ow how to read the input file. Must i read the entire file with one read() =
?<br>How must i write the data into the output file ?<br>&nbsp=3B<br>Thank =
you!<br> 		 	   		  </div></body>
</html>=

--_9ba364cd-a8e6-4981-8892-8b1fe32a380b_--

--===============1991537610==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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


