Return-Path: <tiff-bounces@lists.osgeo.org>
Delivered-To: even.rouault@spatialys.com
Received: from spool.mail.gandi.net (spool5.mail.gandi.net [217.70.178.214])
	by nmboxes134.sd4.0x35.net (Postfix) with ESMTP id 6CB1160276
	for <even.rouault@spatialys.com>; Tue,  2 Apr 2019 10:45:27 +0000 (UTC)
Received: from lists.osgeo.org (osgeo6.osgeo.osuosl.org [140.211.15.3])
	by spool.mail.gandi.net (Postfix) with ESMTPS id C91C7D8067D
	for <even.rouault@spatialys.com>; Tue,  2 Apr 2019 10:45:26 +0000 (UTC)
Received: from osgeo6.osgeo.osuosl.org (localhost [127.0.0.1])
	by lists.osgeo.org (Postfix) with ESMTP id 3E3656146640;
	Tue,  2 Apr 2019 03:45:23 -0700 (PDT)
Received: from mail-yw1-f54.google.com (mail-yw1-f54.google.com
 [209.85.161.54])
 by lists.osgeo.org (Postfix) with ESMTPS id 4C4C86146825
 for <tiff@lists.osgeo.org>; Tue,  2 Apr 2019 03:45:22 -0700 (PDT)
Received: by mail-yw1-f54.google.com with SMTP id j66so4399193ywc.10
 for <tiff@lists.osgeo.org>; Tue, 02 Apr 2019 03:45:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=objectivepathology.com; s=google;
 h=from:to:subject:thread-topic:thread-index:date:message-id
 :references:in-reply-to:accept-language:content-language
 :mime-version; bh=qvBXzTgqNSVAYjQ6kp0CfnWVoIkWsUvXAX+5gNWvq20=;
 b=Nf2GXjWucxdecK+jUYZGc2ImCeJkiOWc9UU92wGm3gXh9p+KlzyzB7zIIjfkZHhOw3
 RoQiWS8BuwrDRnFwLphIFuo/O4EkuWg5n7KXTkwDPdATahsYNIdZsHbXT1MgUCLwTcCX
 JMlegJicdFC5ifTJ4JE89qBZS7QVy8+9esxmoU/sOSVMw9mwdgp8XF5VgIlhO5/hqhw+
 8nszSg6c38bpoi3mktP206Xjb8D9dUqxIXOcjirhxigEHCdUUjZg+Z02rPdJYhgvkvt5
 6juCIgwah+ffJis2IxI88PHNSmig6tUlMuHUcqDCFavCJrWuBhJGc8gEqtPEx9PrHiuc
 igfg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:thread-topic:thread-index:date
 :message-id:references:in-reply-to:accept-language:content-language
 :mime-version;
 bh=qvBXzTgqNSVAYjQ6kp0CfnWVoIkWsUvXAX+5gNWvq20=;
 b=Jj+MUWr9FXLGNrk23+p3tgKuV5Z3Tfm3qPR2KDRm4ygyAxWdNPd9wQV51J9nDJvTk8
 3fwHX1VE09m8ZZZsZ/yQsYBB7HpUnkQjtbNMuEg7RpfLtKT4wUWwSVKsrmvlSxFkK1rs
 0hbSORN71e90mKkAt6c+qmdWHQJ6O4ii8S4PpJgAOJQ/Ga/yo5/cowlLm+5qWufVQiTt
 Djukfp3J0yqaCEU8BOTOQl7XIh/w+ktfC3zh+cwrO7kJduhTpiguSjQw1UiAgRNn4YLh
 Jq8Q7I/jSx3fT92Ii7c9oj5j+X9RhJgX9dH+MrMgUNjUD6N+TEFrmN6H0lzSKrAVLc7Z
 QOxQ==
X-Gm-Message-State: APjAAAUzAOu6FWYypTjbwAc+YcAH6sTanLPX9efoQhoTjfoU++mNTcri
 zFCUqtm3ruTp4ZEbEiK6J7aP2g==
X-Google-Smtp-Source: APXvYqwtjMakWSwuIyCnVCFagRKBxkl+2r8egmzn2Y4BxunBzGyK0ZCosUWsc4siV5vZUmkHXSt9uw==
X-Received: by 2002:a81:4e53:: with SMTP id c80mr55803652ywb.8.1554201921384; 
 Tue, 02 Apr 2019 03:45:21 -0700 (PDT)
Received: from CY4PR04MB1047.namprd04.prod.outlook.com ([40.97.139.5])
 by smtp.gmail.com with ESMTPSA id 188sm4633344ywh.59.2019.04.02.03.45.20
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 02 Apr 2019 03:45:20 -0700 (PDT)
From: Kemp Watson <kemp@objectivepathology.com>
To: Ganesh Bondili <Ganesh.Bondili@kofax.com>, "tiff@lists.osgeo.org"
 <tiff@lists.osgeo.org>
Thread-Topic: [Tiff] TIFFWriteEncodedStrip is resulting in error.
Thread-Index: AUYyOTU007zpD511CaVYW/j9h1kZ3p1uD+ln
X-MS-Exchange-MessageSentRepresentingType: 1
Date: Tue, 2 Apr 2019 10:45:18 +0000
Message-ID: <CY4PR04MB10479CFFFE0530A1AE0E92ECAB560@CY4PR04MB1047.namprd04.prod.outlook.com>
References: <9E79C4E4FE17DC45B51391A9BAA8E68201C85B4F@US01VMEX15.kofax.com>
In-Reply-To: <9E79C4E4FE17DC45B51391A9BAA8E68201C85B4F@US01VMEX15.kofax.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-Exchange-Organization-SCL: -1
X-MS-TNEF-Correlator: 
X-MS-Exchange-Organization-RecordReviewCfmType: 0
MIME-Version: 1.0
Subject: Re: [Tiff] TIFFWriteEncodedStrip is resulting in error.
X-BeenThere: tiff@lists.osgeo.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.osgeo.org>
List-Unsubscribe: <https://lists.osgeo.org/mailman/options/tiff>,
 <mailto:tiff-request@lists.osgeo.org?subject=unsubscribe>
List-Post: <mailto:tiff@lists.osgeo.org>
List-Help: <mailto:tiff-request@lists.osgeo.org?subject=help>
List-Subscribe: <https://lists.osgeo.org/mailman/listinfo/tiff>,
 <mailto:tiff-request@lists.osgeo.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============5326494367039269900=="
Errors-To: tiff-bounces@lists.osgeo.org
Sender: "Tiff" <tiff-bounces@lists.osgeo.org>
X-GND-Status: LEGIT

--===============5326494367039269900==
Content-Language: en-US
Content-Type: multipart/related;
	boundary="_004_CY4PR04MB10479CFFFE0530A1AE0E92ECAB560CY4PR04MB1047namp_";
	type="multipart/alternative"

--_004_CY4PR04MB10479CFFFE0530A1AE0E92ECAB560CY4PR04MB1047namp_
Content-Type: multipart/alternative;
	boundary="_000_CY4PR04MB10479CFFFE0530A1AE0E92ECAB560CY4PR04MB1047namp_"

--_000_CY4PR04MB10479CFFFE0530A1AE0E92ECAB560CY4PR04MB1047namp_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Ganesh:

Did you use TIFFSetErrorHandler to see what the actual issue is?
Also, be aware that XRESOLUTION and YRESOLUTION are floats, not integers.

[signature_1341774294]

W. Kemp Watson
+1 (416) 970-7284
Objective Pathology Services Limited
13629 Fallbrook Trail, Halton Hills
Ontario, Canada  L7G 4S8

From: Tiff <tiff-bounces@lists.osgeo.org> on behalf of Ganesh Bondili <Gane=
sh.Bondili@kofax.com>
Date: Tuesday, April 2, 2019 at 6:06 AM
To: "tiff@lists.osgeo.org" <tiff@lists.osgeo.org>
Subject: [Tiff] TIFFWriteEncodedStrip is resulting in error.

Hi LibTIFF,

We have a Customer that has reported that they are unable to convert attach=
ed(below link) PDF file(5C826DA7.pdf) from PDF to Tiff and resulting in err=
or. We are using first Datalogics library to load & draw each page from PDF=
 file to memory buffer which we then use LibTIFF library to write to TIFF f=
ile as below with given Tags set. In case of  resolution =91TIFFTAG_XRESOLU=
TION=92 set as 300x300, error is generated at =91TIFFWriteEncodedStrip()=92=
 function with below values. Buffer looks good when saved as BMP file. Same=
 file gets converted successfully for 200x200 resolution.

https://drive.google.com/open?id=3D1TvF1aj9L9z3ZuHru57ui0k0Cm37F8iO_

What is the reason for error for this PDF file at =91TIFFWriteEncodedStrip(=
)=92 function and can this be resolved and converted to TIFF without error =
at 300x300 resolution.

                                TIFFSetField(hTIFF, TIFFTAG_IMAGEWIDTH, 242=
09);
                                TIFFSetField(hTIFF, TIFFTAG_IMAGELENGTH, 22=
730);
                                TIFFSetField(hTIFF, TIFFTAG_COMPRESSION, 7)=
;
                                TIFFSetField(hTIFF, TIFFTAG_FILLORDER, FILL=
ORDER_MSB2LSB);
                                TIFFSetField(hTIFF, TIFFTAG_PLANARCONFIG, P=
LANARCONFIG_CONTIG);
                                TIFFSetField(hTIFF, TIFFTAG_XRESOLUTION, 30=
0); // works good for 200
                                TIFFSetField(hTIFF, TIFFTAG_YRESOLUTION, 30=
0); // works good for 200
                                TIFFSetField(hTIFF, TIFFTAG_RESOLUTIONUNIT,=
 RESUNIT_INCH);
                                TIFFSetField(hTIFF, TIFFTAG_SOFTWARE, "Conv=
 ");
                                TIFFSetField(hTIFF, TIFFTAG_SAMPLESPERPIXEL=
, 3);
                                TIFFSetField(hTIFF, TIFFTAG_BITSPERSAMPLE, =
8);
                                TIFFSetField(hTIFF, TIFFTAG_PHOTOMETRIC, 2)=
;
                                TIFFSetField(hTIFF, TIFFTAG_JPEGQUALITY, 75=
);

                                Ret1 =3D TIFFWriteEncodedStrip(hTIFF, 0, bu=
ffer, 1650811710);// Error occurs here - returns '-1' value
                                if (Ret1 !=3D -1) {
                                                Ret2 =3D TIFFWriteDirectory=
(hTIFF);
                                }
Regards,
Ganesh.


Ganesh Bondili
Senior Software Engineer
Kofax India Private Limited

The V, Capella Block 6th Floor, Plot No17, Software Units Layout, Madhapur
Hyderabad, 500081
India

Tel: +91 40 45459949
Fax: +91 40 45459922
Ganesh.Bondili@kofax.com

Register for the Free Trial of Kofax RPA<https://www.kofax.com/Products/Rob=
otic-Process-Automation/Kapow/rpa-free-trial>

blog<http://www.kofax.com/blog/> | twitter<https://twitter.com/Kofax> | lin=
kedin<https://www.linkedin.com/company/kofax> | facebook<https://www.facebo=
ok.com/kofax.inc>

________________________________

This communication is only for the use of the intended recipient. It may co=
ntain confidential or proprietary information. If you are not the intended =
recipient or have received this communication in error, please notify the s=
ender via phone and destroy this communication immediately.

--_000_CY4PR04MB10479CFFFE0530A1AE0E92ECAB560CY4PR04MB1047namp_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:System;
	panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Geneva;
	panose-1:2 11 5 3 3 4 4 4 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
	{font-family:"Times New Roman \(Body CS\)";
	panose-1:2 2 6 3 5 4 5 2 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
	{mso-style-name:msonormal;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
p.msochpdefault, li.msochpdefault, div.msochpdefault
	{mso-style-name:msochpdefault;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:10.0pt;
	font-family:"Times New Roman",serif;}
span.emailstyle17
	{mso-style-name:emailstyle17;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
span.emailstyle18
	{mso-style-name:emailstyle18;
	font-family:"Calibri",sans-serif;
	color:#1F497D;}
span.EmailStyle22
	{mso-style-type:personal-reply;
	font-family:"System",sans-serif;
	font-variant:normal !important;
	color:#223344;
	text-transform:none;
	letter-spacing:0pt;
	mso-ligatures:standardcontextual;
	mso-number-form:lining;
	mso-number-spacing:tabular;
	mso-stylistic-set:0;
	mso-contextual-alternates:yes;
	font-weight:normal;
	font-style:normal;
	text-decoration:none none;
	vertical-align:baseline;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-CA" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:12.0pt;font-=
family:&quot;System&quot;,sans-serif;color:#223344;mso-ligatures:standardco=
ntextual;mso-number-form:lining;mso-number-spacing:tabular;mso-contextual-a=
lternates:yes">Ganesh:<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:12.0pt;font-=
family:&quot;System&quot;,sans-serif;color:#223344;mso-ligatures:standardco=
ntextual;mso-number-form:lining;mso-number-spacing:tabular;mso-contextual-a=
lternates:yes"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:12.0pt;font-=
family:&quot;System&quot;,sans-serif;color:#223344;mso-ligatures:standardco=
ntextual;mso-number-form:lining;mso-number-spacing:tabular;mso-contextual-a=
lternates:yes">Did you use TIFFSetErrorHandler to
 see what the actual issue is?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:12.0pt;font-=
family:&quot;System&quot;,sans-serif;color:#223344;mso-ligatures:standardco=
ntextual;mso-number-form:lining;mso-number-spacing:tabular;mso-contextual-a=
lternates:yes">Also, be aware that XRESOLUTION and
 YRESOLUTION are floats, not integers.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:12.0pt;font-=
family:&quot;System&quot;,sans-serif;color:#223344;mso-ligatures:standardco=
ntextual;mso-number-form:lining;mso-number-spacing:tabular;mso-contextual-a=
lternates:yes"><o:p>&nbsp;</o:p></span></p>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;font-family:&quot;Sy=
stem&quot;,sans-serif;color:#445566"><img width=3D"144" height=3D"32" style=
=3D"width:1.5in;height:.3333in" id=3D"Picture_x0020_1" alt=3D"signature_134=
1774294" data-outlook-trace=3D"F:0|T:1" src=3D"cid:image001.png@01D4E91F.A1=
E42B10"><span style=3D"mso-ligatures:standardcontextual;mso-number-form:lin=
ing;mso-number-spacing:tabular;mso-contextual-alternates:yes"><o:p></o:p></=
span></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:6.0pt;font-family:&quot;Sys=
tem&quot;,sans-serif;color:#445566;mso-ligatures:standardcontextual;mso-num=
ber-form:lining;mso-number-spacing:tabular;mso-contextual-alternates:yes"><=
o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><span style=3D"font-f=
amily:&quot;System&quot;,sans-serif;color:#223344;mso-ligatures:standardcon=
textual;mso-number-form:lining;mso-number-spacing:tabular;mso-contextual-al=
ternates:yes">W. Kemp Watson<br>
</span><span style=3D"font-size:10.0pt;font-family:&quot;System&quot;,sans-=
serif;color:#445566;mso-ligatures:standardcontextual;mso-number-form:lining=
;mso-number-spacing:tabular;mso-contextual-alternates:yes">&#43;1 (416) 970=
-7284<o:p></o:p></span></p>
</div>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-family:&quot;Syst=
em&quot;,sans-serif;color:#223344;mso-ligatures:standardcontextual;mso-numb=
er-form:lining;mso-number-spacing:tabular;mso-contextual-alternates:yes">Ob=
jective Pathology Services Limited<br>
</span><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-family:&quot;Sys=
tem&quot;,sans-serif;color:#445566;mso-ligatures:standardcontextual;mso-num=
ber-form:lining;mso-number-spacing:tabular;mso-contextual-alternates:yes">1=
3629 Fallbrook Trail, Halton Hills</span><span lang=3D"EN-US" style=3D"font=
-size:10.0pt;font-family:&quot;System&quot;,sans-serif;color:#223344;mso-li=
gatures:standardcontextual;mso-number-form:lining;mso-number-spacing:tabula=
r;mso-contextual-alternates:yes"><br>
</span><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-family:&quot;Sys=
tem&quot;,sans-serif;color:#445566;mso-ligatures:standardcontextual;mso-num=
ber-form:lining;mso-number-spacing:tabular;mso-contextual-alternates:yes">O=
ntario, Canada&nbsp; L7G 4S8</span><span lang=3D"EN-US" style=3D"font-size:=
12.0pt;font-family:&quot;System&quot;,sans-serif;color:#223344;mso-ligature=
s:standardcontextual;mso-number-form:lining;mso-number-spacing:tabular;mso-=
contextual-alternates:yes"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:12.0pt;font-=
family:&quot;System&quot;,sans-serif;color:#223344;mso-ligatures:standardco=
ntextual;mso-number-form:lining;mso-number-spacing:tabular;mso-contextual-a=
lternates:yes"><o:p>&nbsp;</o:p></span></p>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"color:black">From: </span></b><spa=
n style=3D"color:black">Tiff &lt;tiff-bounces@lists.osgeo.org&gt; on behalf=
 of Ganesh Bondili &lt;Ganesh.Bondili@kofax.com&gt;<br>
<b>Date: </b>Tuesday, April 2, 2019 at 6:06 AM<br>
<b>To: </b>&quot;tiff@lists.osgeo.org&quot; &lt;tiff@lists.osgeo.org&gt;<br=
>
<b>Subject: </b>[Tiff] TIFFWriteEncodedStrip is resulting in error.</span><=
span style=3D"font-size:12.0pt;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Times New Roman&quo=
t;,serif"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal">Hi LibTIFF,<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;<o:p></o:p></p>
<p class=3D"MsoNormal">We have a Customer that has reported that they are u=
nable to convert attached<span style=3D"color:#1F497D">(below link)</span> =
PDF file(<b>5C826DA7.pdf</b>) from PDF to Tiff and resulting in error. We a=
re using first Datalogics library to
 load &amp; draw each page from PDF file to memory buffer which we then use=
 LibTIFF library to write to TIFF file as below with given Tags set. In cas=
e of &nbsp;resolution =91<span style=3D"font-size:9.5pt;font-family:Consola=
s;color:#6F008A">TIFFTAG_XRESOLUTION</span>=92
 set as <b>300x300</b>, error is generated at =91<span style=3D"font-size:9=
.5pt;font-family:Consolas;color:black">TIFFWriteEncodedStrip()</span>=92 fu=
nction with below values. Buffer looks good when saved as BMP file. Same fi=
le gets converted successfully for 200x200
 resolution.<o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">&nbsp;</span><o:p></o:=
p></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><a href=3D"https://dri=
ve.google.com/open?id=3D1TvF1aj9L9z3ZuHru57ui0k0Cm37F8iO_">https://drive.go=
ogle.com/open?id=3D1TvF1aj9L9z3ZuHru57ui0k0Cm37F8iO_</a></span><o:p></o:p><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">&nbsp;</span><o:p></o:=
p></p>
<p class=3D"MsoNormal"><b>What is the reason for error for this PDF file at=
 =91</b><b><span style=3D"font-size:9.5pt;font-family:Consolas;color:black"=
>TIFFWriteEncodedStrip()</span>=92 function and can this be resolved and co=
nverted to TIFF without error at 300x300
 resolution.</b><o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <i>TIFFSetField=
(hTIFF, TIFFTAG_IMAGEWIDTH, 24209);</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TIFFSetField=
(hTIFF, TIFFTAG_IMAGELENGTH, 22730);</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TIFFSetField=
(hTIFF, TIFFTAG_COMPRESSION, 7);</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TIFFSetField=
(hTIFF, TIFFTAG_FILLORDER, FILLORDER_MSB2LSB);</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TIFFSetField=
(hTIFF, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TIFFSetField=
(hTIFF, TIFFTAG_XRESOLUTION,
<b>300</b>); // works good for 200</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TIFFSetField=
(hTIFF, TIFFTAG_YRESOLUTION,
<b>300</b>); // works good for 200</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TIFFSetField=
(hTIFF, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH);</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TIFFSetField=
(hTIFF, TIFFTAG_SOFTWARE, &quot;Conv &quot;);</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TIFFSetField=
(hTIFF, TIFFTAG_SAMPLESPERPIXEL, 3);</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TIFFSetField=
(hTIFF, TIFFTAG_BITSPERSAMPLE, 8);</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TIFFSetField=
(hTIFF, TIFFTAG_PHOTOMETRIC, 2);</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TIFFSetField=
(hTIFF, TIFFTAG_JPEGQUALITY, 75);
</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </i><o:p></o=
:p></p>
<p class=3D"MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ret1 =3D TIF=
FWriteEncodedStrip(hTIFF, 0,
<b>buffer</b>, <b>1650811710</b>);// Error occurs here - returns '-1' value=
</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (Ret1 !=
=3D -1) { </i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp; Ret2 =3D TIFFWriteDirectory(hTIFF);</i><o:p></o:p></p>
<p class=3D"MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</i><o:p></=
o:p></p>
<p class=3D"MsoNormal">Regards,<o:p></o:p></p>
<p class=3D"MsoNormal">Ganesh.<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;<o:p></o:p></p>
</div>
<div>
<p style=3D"mso-margin-top-alt:6.0pt;margin-right:0in;margin-bottom:6.0pt;m=
argin-left:0in">
<b><span style=3D"font-size:7.5pt;font-family:&quot;Geneva&quot;,sans-serif=
">Ganesh Bondili</span></b><span style=3D"font-size:7.5pt;font-family:&quot=
;Geneva&quot;,sans-serif"><br>
Senior Software Engineer<br>
<b>Kofax India Private Limited</b></span><span style=3D"font-size:10.0pt;fo=
nt-family:&quot;Arial&quot;,sans-serif"><o:p></o:p></span></p>
<p><span style=3D"font-size:7.5pt;font-family:&quot;Geneva&quot;,sans-serif=
">The V, Capella Block 6th Floor, Plot No17, Software Units Layout, Madhapu=
r<br>
Hyderabad, 500081<br>
India</span><span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,s=
ans-serif"><o:p></o:p></span></p>
<p><span style=3D"font-size:7.5pt;font-family:&quot;Geneva&quot;,sans-serif=
">Tel: &#43;91 40 45459949<br>
Fax: &#43;91 40 45459922<br>
Ganesh.Bondili@kofax.com</span><span style=3D"font-size:10.0pt;font-family:=
&quot;Arial&quot;,sans-serif"><o:p></o:p></span></p>
<p><span style=3D"font-size:7.0pt;font-family:&quot;Geneva&quot;,sans-serif=
"><a href=3D"https://www.kofax.com/Products/Robotic-Process-Automation/Kapo=
w/rpa-free-trial">Register for the Free Trial of Kofax RPA</a><o:p></o:p></=
span></p>
</div>
<div>
<p><span style=3D"font-size:9.0pt;font-family:&quot;Geneva&quot;,sans-serif=
"><a href=3D"http://www.kofax.com/blog/"><span style=3D"color:black">blog</=
span></a><span style=3D"color:black"> |
</span><a href=3D"https://twitter.com/Kofax"><span style=3D"color:black">tw=
itter</span></a><span style=3D"color:black"> |
</span><a href=3D"https://www.linkedin.com/company/kofax"><span style=3D"co=
lor:black">linkedin</span></a><span style=3D"color:black"> |</span><a href=
=3D"https://www.facebook.com/kofax.inc"><span style=3D"color:black"> facebo=
ok</span></a><o:p></o:p></span></p>
</div>
<div>
<div class=3D"MsoNormal" align=3D"center" style=3D"text-align:center"><span=
 style=3D"font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif">
<hr size=3D"0" width=3D"100%" align=3D"center">
</span></div>
<p><span style=3D"font-size:9.0pt;font-family:&quot;Geneva&quot;,sans-serif=
">This communication is only for the use of the intended recipient. It may =
contain confidential or proprietary information. If you are not the intende=
d recipient or have received this communication
 in error, please notify the sender via phone and destroy this communicatio=
n immediately.
</span><o:p></o:p></p>
</div>
</div>
</body>
</html>

--_000_CY4PR04MB10479CFFFE0530A1AE0E92ECAB560CY4PR04MB1047namp_--

--_004_CY4PR04MB10479CFFFE0530A1AE0E92ECAB560CY4PR04MB1047namp_
Content-Type: image/png; name="image001.png"
Content-Description: image001.png
Content-Disposition: inline; filename="image001.png"; size=2607;
	creation-date="Tue, 02 Apr 2019 10:45:18 GMT";
	modification-date="Tue, 02 Apr 2019 10:45:18 GMT"
Content-ID: <image001.png@01D4E91F.A1E42B10>
Content-Transfer-Encoding: base64

iVBORw0KGgoAAAANSUhEUgAAANgAAAAwCAYAAABzN7QCAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ
bWFnZVJlYWR5ccllPAAACNFJREFUeNrsXT+P3EQUn0MnaIhiCZpU5zRJhWKUCpqYHhRHVFQxDZTZ
KB/gNh8gxCmhidNAGZ+gx9uQ6iSfoEma7DWkAWmj0EBzzLt7TiZez7wZe8a7650nWcntjmdm33u/
eX/mjb1z9fuTE7ZGdPjtzk7zMz7Hff7PVHJLye/5zMVc+LjX+T8Zv0L8aMGvHObCx3zJPNngZ8Gv
yVj5+Y4Xu1QZ9lH4ofBxAMoAoObfn/dcMuLnTQk/0zHz0wOsXRn2FBYTKCK+97TMz5zgZ+YB1kKX
PuAMvHB2wf9HQhONNqmHjjal28rPXdMbLrzP2FcfnQHq8oftbZ7+xdgvz7jdnzP24p+N5Euk0SaA
lZnHDsdbYIHOq3jCeTAjuog1x7nC+zraSoABsL65ytgXl+m2ADy47nzK2M9PGfvhcOOAttBptA3g
EhacUvH9jg1+GrQbl4v4+SXGfvxSD1xNgnvgXuhjg6jUaDP3np9dfo5xwSIBtn+NR/PcwJ97r/sg
cC/0AX1tCOUaq+nE48aIn9SCNN26JAcAoovVUlmzTQAZ7snECpDBPtiBx40RPxMFPzPe5tFWAQxc
OpvgEkG2Ce4iBtshWqoSL0glR/y7ux42vfhZNPh5e6y/e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ggt49RbpWh3KLmo+B22MhIeFBk
yHo8eNT2e6Ex1RsL8woFC7zAPmeWeOD8waNCVrJ+9MFb/GEa59I2RJ9EuUVCbK0lt9EBzCJjV/Li
dU/jIv+OZk+ePMA8efIAGxslRFDryZMHWMf46yZzXxzsaQto17PgFFC/Cn+GjD5T5QHmyQPMgGKD
tgv/+lhP3kV0R5lngScPMDdU+fcze/IAc2e5Ys8GTz4Gs0clO0toZBv2/ApPa0L/CzAAAiD9vhG+
VS8AAAAASUVORK5CYIIAAAAAAAAA

--_004_CY4PR04MB10479CFFFE0530A1AE0E92ECAB560CY4PR04MB1047namp_--

--===============5326494367039269900==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KVGlmZiBtYWls
aW5nIGxpc3QKVGlmZkBsaXN0cy5vc2dlby5vcmcKaHR0cHM6Ly9saXN0cy5vc2dlby5vcmcvbWFp
bG1hbi9saXN0aW5mby90aWZmCg==

--===============5326494367039269900==--

