AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2006.12.18 17:57 "[Tiff] compiling libtiff using libjpeg under windows", by alexander johnson
2006.12.22 16:37 "[Tiff] Re: Order of Image IFD and Strip Data (Joris)", by Priyanshu Sharma
2006.12.23 06:01 "Re: [Tiff] Re: Order of Image IFD and Strip Data (Joris)", by Anurag Singh
2006.12.23 15:05 "Re: [Tiff] Re: Order of Image IFD and Strip Data (Joris)", by Priyanshu Sharma

2006.12.22 16:37 "[Tiff] Re: Order of Image IFD and Strip Data (Joris)", by Priyanshu Sharma

Anurag,

I totally agree with Joris. If you want an exact replica of your tiff file byte by byte, then why do you want to use LIBTIFF. Rather I will suggest you consider it as any other binary file and use the simple file read and write operations.

In case you are not talking about the exact replica of the file but the image, then the order of blocks wont make any difference unless their offsets are not properly maintained in the differnet tags defined in the IFD.

So firstly you make yourself clear as in what exactly you want to do.

This community will definately help you out.

Regards
Priyanshu

On 12/20/06, tiff-request@lists.maptools.org < tiff-request@lists.maptools.org> wrote:

>
> Send Tiff mailing list submissions to
> tiff@lists.maptools.org
>
> To subscribe or unsubscribe via the World Wide Web, visit

> or, via email, send a message with subject or body 'help' to
> tiff-request@lists.maptools.org
>
> You can reach the person managing the list at
> tiff-owner@lists.maptools.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Tiff digest..."
>
>
> Today's Topics:
>

>    1. compiling libtiff using libjpeg under windows (alexander johnson)
>    2. Re: libtiff under .NET (Edward Lam)
>    3. Re: libtiff under .NET (Andrey Revyakin)
>    4. Fwd: [Tiff] Order of Image IFD and Strip Data (Anurag Singh)
>    5. Re: Order of Image IFD and Strip Data (Joris)
>    6. Re: Order of Image IFD and Strip Data (Gerben Vos)
>    7. Re: Order of Image IFD and Strip Data (Frank Warmerdam)

>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 18 Dec 2006 17:57:07 +0000
> From: "alexander johnson" <alexander.j.johnson@gmail.com>
> Subject: [Tiff] compiling libtiff using libjpeg under windows
> To: tiff@lists.maptools.org
> Message-ID:
> <cec250cc0612180957y65b7d1b0m6ae2b1afdf4c5a69@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"

Does anyone know how to compile libtiff using the libtiff library in windows. I have compiled the libjpeg bibrary and have placed the 4 required header files and the .lib file into the libtiff folder source folder. When i try to build the makefile.vc file it fails during linking. It looks like the libjpeg.lib file isnt being found, but how do I add it correctly? Below are the errors i get which occur when compiling the libtiff folder of the source code

Creating library libtiff_i.lib and object libtiff_i.exp

tif_jpeg.obj : error LNK2001: unresolved external symbol _jpeg_read_header
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_resync_to_restart

tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_start_decompress
tif_jpeg.obj : error LNK2001: unresolved external symbol _jpeg_abort
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_read_scanlines
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_finish_decompress

tif_jpeg.obj : error LNK2001: unresolved external symbol  _jpeg_read_raw_data
tif_jpeg.obj : error LNK2001: unresolved external symbol  _jpeg_set_defaults
tif_jpeg.obj : error LNK2001: unresolved external symbol _jpeg_set_quality
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_suppress_tables
tif_jpeg.obj : error LNK2001: unresolved external symbol  _jpeg_write_tables
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_set_colorspace
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_start_compress
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_write_scanlines
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_write_raw_data
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_finish_compress
tif_jpeg.obj : error LNK2001: unresolved external symbol _jpeg_destroy
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_CreateCompress
tif_jpeg.obj : error LNK2001: unresolved external symbol _jpeg_std_error
tif_jpeg.obj : error LNK2001: unresolved external symbol

_jpeg_CreateDecompress

libtiff.dll: fatal error LNK1120: 20 unresolved externals NMAKE: fatal error U1077: 'link': return code '0x460' Stop.

NMAKE: fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\N

MAKE.EXE"': return code '0x2'
Stop.

> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.maptools.org/mailman/private/tiff/attachments/20061218/153d0b04/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Mon, 18 Dec 2006 13:25:20 -0500 (EST)
> From: "Edward Lam" <edward@sidefx.com>
> Subject: Re: [Tiff] libtiff under .NET
> To: "Andrey Revyakin" <revyakin@stanford.edu>
> Cc: tiff@lists.maptools.org
> Message-ID: <2752.64.229.202.155.1166466320.squirrel@www.sidefx.com>
> Content-Type: text/plain;charset=iso-8859-1
>

> On Sun, December 17, 2006 23:18, Andrey Revyakin said:

> > However, running my application generates a "libtiff.dll was not found" > > error. The respective directory (/libtif) is in the path of the

> compiler,
> > and the .dll *is* there.
>

> I'm not quite sure what you mean by "path of the compiler". There's only > one PATH. Try copying libtiff.dll to the same directory of where your

> executable (.exe) is.
>
> Cheers,
> -Edward
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 18 Dec 2006 11:02:32 -0800
> From: Andrey Revyakin <revyakin@stanford.edu>
> Subject: Re: [Tiff] libtiff under .NET
> To: "Edward Lam" <edward@sidefx.com>
> Cc: tiff@lists.maptools.org
> Message-ID:
> <6.1.2.0.2.20061218105950.09d31250@revyakin.pobox.stanford.edu>
> Content-Type: text/plain; charset="us-ascii"; format=flowed
>
> Edward,
>
> Yes. Ironically, I figured it out immediately after sending my message.
>
> Thanks a lot!
>
> Andrey.
>
> At 10:25 AM 12/18/2006, Edward Lam wrote:
> >On Sun, December 17, 2006 23:18, Andrey Revyakin said:
> > > However, running my application generates a "libtiff.dll was not
> found"
> > > error. The respective directory (/libtif) is in the path of the
> compiler,
> > > and the .dll *is* there.
> >

> >I'm not quite sure what you mean by "path of the compiler". There's only > >one PATH. Try copying libtiff.dll to the same directory of where your

> >executable (.exe) is.
> >
> >Cheers,
> >-Edward
>
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 19 Dec 2006 18:54:43 +0530
> From: "Anurag Singh" <contact.anurag@gmail.com>
> Subject: Fwd: [Tiff] Order of Image IFD and Strip Data
> To: Tiff <tiff@lists.maptools.org>
> Message-ID:
> <11848b2f0612190524u54d110cdxe3a1f242b1710cd8@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello Joris
>
> Please help me, it's really very important for me to know that is there
> any

> posibility to specify order. I had already read tif_open.c but didn't get > such kind of option. Please tell me about the possibility.

>
> Regards
> Anurag
>

> ---------- Forwarded message ----------
> From: Anurag Singh <contact.anurag@gmail.com>
> Date: Dec 16, 2006 3:44 PM
> Subject: [Tiff] Order of Image IFD and Strip Data
> To: Tiff <tiff@lists.maptools.org>
>
> Hello All
>
> I am making copying of tiff image, but i got to know that libtiff
> modified
> offset of image IFD.
> Actually in the source image image data (Strip Data) is first and then
> all
> the tags.
> But In the final copy, tag is first and strip data is second.
>
> I know that there's no problem in order, and ofcourse my tiff image is
> able
> to open & working fine. but i want to make exact copy.
>

> So, I want to know that is there any provision in libtiff that anyone can > specified the above order.

>
> Thanks In Advance
> Anuarg Singh
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.maptools.org/mailman/private/tiff/attachments/20061219/8ae4e942/attachment-0001.html
>
> ------------------------------
>
> Message: 5
> Date: Tue, 19 Dec 2006 14:59:13 +0100
> From: "Joris" <joris.at.lebbeke@skynet.be>
> Subject: Re: [Tiff] Order of Image IFD and Strip Data
> To: "Anurag Singh" <contact.anurag@gmail.com>, "Tiff"
> <tiff@lists.maptools.org>
> Message-ID: <001f01c72375$de69a600$a3b5f551@dfgrrxsknr4e>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Anurag,
>
> Anurag Singh wrote:
> > Please help me, it's really very important for me to know that is
> > there any posibility to specify order. I had already read
> > tif_open.c but didn't get such kind of option. Please tell me about
> > the possibility.
>
> There is no such possibility to the best of my knowledge.
>

> You keep asking for support for operations on TIFF that totally go > against the spirit of TIFF. TIFF has no concept of order of data blocks,

> all blocks are relocatable, thus two files with the exact same blocks in > a different order, are exactly the same TIFF. Even if someone would be

> willing to add the requested functionality and let you determine the > order of blocks, I'd vote against any such code in LibTiff.

>

> Suppose you'd find support to do this. Next, you'll be faced with TIFF > files with 'holes' in them that are a consequence of 'deleting' IFDs or

> 'updating' tag data or such, i.e. spaces in the file that are not > pointed to. You'll be asking for support for copying meaningless

> garbage.
>

> Suppose you'd find support to deal with that, too. Next, you'll be faced > with TIFF files of writers that don't align properly, i.e. don't start

> separate blocks of data on mulitples of 2 or 4 bytes. And you'll be > asking for support to misalign.

>

> The mess is endless. If you want to work with TIFF, understand and > comply with its spirit, because its spirit is a consistent whole and any

> violation of it results in an avalanche of problems, many of which you > will not be able to foresee.

>

> I've said this before, like I asked you before to quote properly and > post plain text only. If you want someone's help, it's a good idea to

> try and understand their replies. If you don't agree with those replies, > well, then feel free to disagree, and bare the consequences that I'm

> sure you fully thought through.
>
>
> Best regards,
>
> Joris Van Damme
> info@awaresystems.be
> http://www.awaresystems.be/
> Download your free TIFF tag viewer for windows here:
> http://www.awaresystems.be/imaging/tiff/astifftagviewer.html
>
>
>
> ------------------------------
>
> Message: 6
> Date: Tue, 19 Dec 2006 16:48:21 +0100
> From: "Gerben Vos" <Gerben@ZyLAB.COM>
> Subject: Re: [Tiff] Order of Image IFD and Strip Data
> To: "Tiff" <tiff@lists.maptools.org>
> Message-ID:
> <FC840EC0BF7BFA45A0F94548AF36920D020CA6CA@zynlms01.ZyLAB.WAN>
> Content-Type: text/plain; charset="iso-8859-1"
>

> I don't know if it's relevant for Anurag, but if he wants to check whether > two TIFFs are the same, he can use the tiffcmp utility in the libtiff

> distribution.
>
> Gerben Vos.
>
>
>
> ------------------------------
>
> Message: 7
> Date: Tue, 19 Dec 2006 20:22:00 -0500
> From: Frank Warmerdam <warmerdam@pobox.com>
> Subject: Re: [Tiff] Order of Image IFD and Strip Data
> To: Anurag Singh <contact.anurag@gmail.com>
> Cc: Tiff <tiff@lists.maptools.org>
> Message-ID: <45889038.3000107@pobox.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Anurag Singh wrote:
> > Hello All
> >
> > I am making copying of tiff image, but i got to know that libtiff
> > modified offset of image IFD.
> > Actually in the source image image data (Strip Data) is first and then
> > all the tags.
> > But In the final copy, tag is first and strip data is second.
> >

> > I know that there's no problem in order, and ofcourse my tiff image is > > able to open & working fine. but i want to make exact copy.

> >
> > So, I want to know that is there any provision in libtiff that anyone
> > can specified the above order.
>
> Anurag,
>
> If you want an exact copy then skip libtiff, and just copy the file
> directly.
>
> There are some things you can do with libtiff to try and influence the
> order

> in which things are written, and by default it will write the image data > starting at byte 8, and put the tags and directory after the image data.

> (based on a test with tiffcp anyways).
>

> But basically Joris is right, fiddling about with ordering dependencies is > a short road to misery.

>
> Best regards,
> --
>

> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmerdam@pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush    | President OSGeo, http://osgeo.org

>
>
>
> ------------------------------

> Tiff mailing list

> End of Tiff Digest, Vol 31, Issue 11
> ************************************
>