Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx1.pub.mailpod2-cph3.one.com ([10.27.25.11])
	by mailstorage18.cst.mailpod2-cph3.one.com (Dovecot) with LMTP id 6ccsMdaKoVrlsAAAQS8vrQ
	for <filtered@awaresystems.be>; Thu, 08 Mar 2018 19:12:14 +0000
X-HalOne-ID: 9ba6ee6a-2304-11e8-8d9c-e0d848957041
Received: from mail-ot0-f169.google.com (unknown [74.125.82.169])
	by mx1.pub.mailpod2-cph3.one.com (Halon) with ESMTPS
	id 9ba6ee6a-2304-11e8-8d9c-e0d848957041;
	Thu, 08 Mar 2018 19:12:14 +0000 (UTC)
Received: by mail-ot0-f169.google.com with SMTP id y11so6465748otg.0
        for <filtered@awaresystems.be>; Thu, 08 Mar 2018 11:12:14 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-original-authentication-results:x-gm-message-state:delivered-to
         :mime-version:in-reply-to:references:from:date:message-id:to:cc
         :subject:precedence:list-id:list-unsubscribe:list-archive:list-post
         :list-help:list-subscribe:mime-version:sender:errors-to;
        bh=MwxRtUR1I6PLwRrggeFWiIleuLIfFmZA1jS5jsTFCRY=;
        b=Hkk2nLiCTCF98R3Q3MNeXpYWfwNm7pking+9anMChes89SoKeQK1+Lo//3LP5Q1ok+
         DyimI+HmbYpkdYVb4scVkN/WRPFkYRTm8W31ndtqmhySba+HTD3hxk3hw86bYsVVzCmt
         FhV7WMf/2JQkxiNpVcF8kh6RYBf5DlnyVrZ2Sd399R1XHFsjVp8oMODMNCXAxVrMcMT+
         3N0vBR2/7PAebkJ1h+HMmM5DbgSDDh6dD2rO9OjFmprzg9N3J2w2eEiHlC2iQ0K5l8EA
         n229AuY9r8ne/tfpno6+bIPDjEyirNU6raJzD3rpjEdo5zBz/Jl0avbEVs6nu9fdIShn
         +taQ==
X-Original-Authentication-Results: mx.google.com;       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org;       dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
X-Gm-Message-State: AElRT7GR9KuathrsN4bGdi79P8D3DgL3xSdwDS3kV8J7Ti/oijIV3/X4
	wuUs4XJKaVYU4+YSDWWEvniM2riwBQNWmDryGq9X/nkWfoCQU/E=
X-Received: by 10.157.68.194 with SMTP id p2mr836460otg.249.1520536332881;
        Thu, 08 Mar 2018 11:12:12 -0800 (PST)
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.74.22.129 with SMTP id 1csp40667oox;
        Thu, 8 Mar 2018 11:12:11 -0800 (PST)
X-Google-Smtp-Source: AG47ELtiMraX0l7PA7tyo04vVvQ7UyjtFNT00apasdtWKLulnP/zGMc4hD+mDzdiiYdHWcfv/vmb
X-Received: by 10.28.3.68 with SMTP id 65mr13834375wmd.17.1520536331510;
        Thu, 08 Mar 2018 11:12:11 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1520536331; cv=none;
        d=google.com; s=arc-20160816;
        b=qDVzcSt42EQMlSoX58xjDN2UP/kzIEbWPVvI6M1sVlY+UqSz8IgRWteZxQlm6Vy4YZ
         BPTqRIKcLFfWUQLbfeuG2IHPUmfhAkQ9UaS+Ir8dVtCJi/Rkfe6W2BRseakwN3yt6UlQ
         JLK8UClkPTdtXF0NgmEFkKUp6BD1ZS5spS0lzQHHyfFOJ1EvIzUSsIogz/NV1me0HjCy
         MazneX7uGrThwT/SKV0+Hq5hbDxYn/73wOLijPYya6nYAT2A5W5v/YMiM7yXZHBvwHaM
         58s1e7s6Iuxe8hI6JKw4soSA1lX4LzWRoa1Wyty1QooUvn0EEJSe4Z7S3vtuN2Lu4qEb
         y+eA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=errors-to:sender:mime-version:list-subscribe:list-help:list-post
         :list-archive:list-unsubscribe:list-id:precedence:subject:cc:to
         :message-id:date:from:references:in-reply-to:mime-version
         :arc-authentication-results;
        bh=MwxRtUR1I6PLwRrggeFWiIleuLIfFmZA1jS5jsTFCRY=;
        b=vgN0p4rrEFD2neoN1j7DHzDZlu5QqaULcLVnEDOBGf26chaaC20sYrp52LtgjT30Dq
         U2rqr1f3dDftUF0o2RvpMtutpmjhUugCwAWWlJRsuLE+mVLytxiBmHxph766X+E2mdEI
         zn67g1l5LWyH/Jzmv/vnIzil5z9FiY5L/KWSu5MguRClKch5fYVhrBpdRDltEToKpMoT
         nblreE+43AQvLClTy7gIqDKS4tJXQ5dAfT2RjIAgUdPy+MQuMlgy/ReYyCif06emUEvs
         BACbNTx8iKDkpQ1cqJ1hYpoYGQowtpnro4xcj3kM/EwfnxpuDST5EK4JicBCOu94teWm
         lUog==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org;
       dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Return-Path: <tiff-bounces@lists.maptools.org>
Received: from lists.maptools.org (ks365428.kimsufi.com. [94.23.4.142])
        by mx.google.com with ESMTP id f10si1000204wrg.5.2018.03.08.11.12.10;
        Thu, 08 Mar 2018 11:12:11 -0800 (PST)
Received-SPF: neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) client-ip=94.23.4.142;
Authentication-Results: mx.google.com;
       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org;
       dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 3E17935C049;
	Thu,  8 Mar 2018 14:11:12 -0500 (EST)
Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com
	[209.85.218.45])
	by lists.maptools.org (Postfix) with ESMTPS id B2E9935C033
	for <tiff@lists.maptools.org>; Thu,  8 Mar 2018 14:09:28 -0500 (EST)
Received: by mail-oi0-f45.google.com with SMTP id c12so5170849oic.7
	for <tiff@lists.maptools.org>; Thu, 08 Mar 2018 11:09:28 -0800 (PST)
X-Received: by 10.202.87.136 with SMTP id l130mr18061592oib.356.1520536166580; 
	Thu, 08 Mar 2018 11:09:26 -0800 (PST)
MIME-Version: 1.0
Received: by 10.74.182.4 with HTTP; Thu, 8 Mar 2018 11:09:06 -0800 (PST)
In-Reply-To: <57393b00-bf54-03d3-8cbf-60d4b9ec667f@codelibre.net>
References: <CAB82cH7XrhyDT2-NGH+hPbZotCLMa09ax-_jhuqn5i2grA5p8A@mail.gmail.com>
	<57393b00-bf54-03d3-8cbf-60d4b9ec667f@codelibre.net>
From: Bhaskar Reddy <reddy.baskar0605@gmail.com>
Date: Thu, 8 Mar 2018 13:09:06 -0600
Message-ID: <CAB82cH4nAB5W3U7=qne6y4L9M-RPT7SuCNYSF_g2rqV3zMpOMQ@mail.gmail.com>
To: Roger Leigh <rleigh@codelibre.net>
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] TIFF image is writing less tag entries than original
	image
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>
Content-Type: multipart/mixed; boundary="===============1381672491=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

--===============1381672491==
Content-Type: multipart/alternative; boundary="001a113de28a13c97d0566eb6a53"

--001a113de28a13c97d0566eb6a53
Content-Type: text/plain; charset="UTF-8"

Hi,

I have not wriiten any code but I used the function
 "char save(ImlibImage * im, ImlibProgressFunction progress, char
progress_granularity)" in the library Imlib2 which calls function "tif =
TIFFOpen(im->real_file, "w");" in the libtiff library to write the TIff
image.

I downloaded
a) the source code for imlib2 1.4.10 from
http://www.linuxfromscratch.org/blfs/view/cvs/x/imlib2.html and
b) the source code for libtiff (Tiff 4.0.9) from
http://www.linuxfromscratch.org/blfs/view/svn/general/libtiff.html

So I guess I can't send all those files.

If anyone used the *TIFFOpen* function in tif_unix.c (which take care of
calling all other required functions) to write the tiff image, then how
many IFDs were seen in the written image?
I am seeing only 12 IFDs in written images for an input image of 17 or 14
IFDs.

Thanks,
Bhaskar.

On Wed, Mar 7, 2018 at 4:57 PM, Roger Leigh <rleigh@codelibre.net> wrote:

> On 06/03/2018 19:17, Bhaskar Reddy wrote:
> > I am getting Tiff image (380 KB) with 12 tag entries in LITTLE-ENDIAN
> > style When writing new tiff image file using libtiff (TIFF 4.0.6) in W
> > mode with existing tiff file of 53KB which has 17 tag entries in
> > BIG-ENDIAN style.
>
> What are the 12 tag entries in the new file?
> What are the 17 tag entries in the old file?
> How did you write the new TIFF?
> How did you write the original TIFF?
> Do you have any code to show us?
> Do you want to make the files available so we can take a look at them?
> Maybe run tiffinfo on both files and look at the differences?
>
> > Is everyone has the same problem? or Do I need to modify the code to
> > write the tiff image successfully?
>
> You need to provide some useful information if you want a useful answer.
>   It's impossible to provide any sort of meaningful response without
> something to go on.
>
>
> Regards,
> Roger
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/
>



-- 
Thanks,
Bhaskar.

--001a113de28a13c97d0566eb6a53
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div><div>Hi,</div><div><br></div><div>I have no=
t wriiten any code but I used the function<br></div>=C2=A0&quot;char save(I=
mlibImage * im, ImlibProgressFunction progress, char progress_granularity)&=
quot; in the library Imlib2 which calls function &quot;tif =3D TIFFOpen(im-=
&gt;real_file, &quot;w&quot;);&quot; in the libtiff library to write the TI=
ff image.</div><div><br></div><div>I downloaded <br></div><div>a) the sourc=
e code for imlib2 1.4.10 from=C2=A0 <a href=3D"http://www.linuxfromscratch.=
org/blfs/view/cvs/x/imlib2.html">http://www.linuxfromscratch.org/blfs/view/=
cvs/x/imlib2.html</a> and<br>b) the source code for libtiff (Tiff 4.0.9) fr=
om <a href=3D"http://www.linuxfromscratch.org/blfs/view/svn/general/libtiff=
.html">http://www.linuxfromscratch.org/blfs/view/svn/general/libtiff.html</=
a><br></div></div><div><br></div><div>So I guess I can&#39;t send all those=
 files.</div><div><br></div><div>If anyone used the <font size=3D"4"><i><b>=
TIFFOpen</b></i></font> function in tif_unix.c (which take care of calling =
all other required functions) to write the tiff image, then how many IFDs w=
ere seen in the written image?</div><div>I am seeing only 12 IFDs in writte=
n images for an input image of 17 or 14 IFDs.<br></div><div><br></div><div>=
Thanks,<br></div></div>Bhaskar.<br></div><div class=3D"gmail_extra"><br><di=
v class=3D"gmail_quote">On Wed, Mar 7, 2018 at 4:57 PM, Roger Leigh <span d=
ir=3D"ltr">&lt;<a href=3D"mailto:rleigh@codelibre.net" target=3D"_blank">rl=
eigh@codelibre.net</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quot=
e" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">=
<span class=3D"">On 06/03/2018 19:17, Bhaskar Reddy wrote:<br>
&gt; I am getting Tiff image (380 KB) with 12 tag entries in LITTLE-ENDIAN<=
br>
&gt; style When writing new tiff image file using libtiff (TIFF 4.0.6) in W=
<br>
&gt; mode with existing tiff file of 53KB which has 17 tag entries in<br>
&gt; BIG-ENDIAN style.<br>
<br>
</span>What are the 12 tag entries in the new file?<br>
What are the 17 tag entries in the old file?<br>
How did you write the new TIFF?<br>
How did you write the original TIFF?<br>
Do you have any code to show us?<br>
Do you want to make the files available so we can take a look at them?<br>
Maybe run tiffinfo on both files and look at the differences?<br>
<span class=3D""><br>
&gt; Is everyone has the same problem? or Do I need to modify the code to<b=
r>
&gt; write the tiff image successfully?<br>
<br>
</span>You need to provide some useful information if you want a useful ans=
wer.<br>
=C2=A0 It&#39;s impossible to provide any sort of meaningful response witho=
ut<br>
something to go on.<br>
<br>
<br>
Regards,<br>
Roger<br>
______________________________<wbr>_________________<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" rel=3D"noreferr=
er" target=3D"_blank">http://lists.maptools.org/<wbr>mailman/listinfo/tiff<=
/a><br>
<a href=3D"http://www.remotesensing.org/libtiff/" rel=3D"noreferrer" target=
=3D"_blank">http://www.remotesensing.org/<wbr>libtiff/</a><br>
</blockquote></div><br><br clear=3D"all"><br>-- <br><div class=3D"gmail_sig=
nature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=
=3D"ltr">Thanks,</div><div dir=3D"ltr">Bhaskar.</div></div></div></div>
</div>

--001a113de28a13c97d0566eb6a53--

--===============1381672491==
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/
--===============1381672491==--
