2007.06.29 18:41 "[Tiff] Obsolete libtiff.org Web Site", by Kevin Myers

2007.07.05 23:43 "[Tiff] Re: Enhancements for tiffdump and tiffset", by Kevin Myers

Good grief, stripped off the libtiff and zlib dlls, and the attachment was *still* too big. So this time, no binaries at all, just the modified source is attached...

----- Original Message -----
From: "Kevin Myers" <kmyers1@clearwire.net>

To: <tiff@lists.maptools.org>

Sent: Thursday, July 05, 2007 17:25

Subject: Re: Enhancements for tiffdump and tiffset

Dear libtiff maintainers,

> Sent the following message a couple of days ago, but apparently it was > rejected by the list due to the size of my attachment. So I am sending

> again, but this time without including the libtiff and zlib DLLs mentioned > previously. Hope that some of you can take a look at the updated source

> and
> Windows executables that I am providing, and let me know what you think.
> Thanks,

Kevin M.

> Subject: Enhancements for tiffdump and tiffset
>> Dear libtiff maintainers,
>> I have implemented some enhancements for tiffdump and tiffset to provide
>> new
>> capabilities as outlined below. The attached zip file contains updated

>> source code and Windows executables that implement these changes. I have >> also included libtiff and zlib DLLs for my particular build environment,

>> so
>> that you can test the executables under Windows without any need to
>> re-build. Simply dump all of these files into a single directory and run
>> them from there.

>> If you agree that these enhancements seem to be generally useful and well >> implemented, then please let me know how to proceed. I don't do a lot of

>> development work of this type, so I am not familiar with all of the >> requirements for using cvs, etc. and don't have related tools (diff,

>> etc.)
>> installed on my machine. These changes involve a relatively small amount
>> of

>> code in only two source files (tiffdump.c and tiffset.c), so it might be >> faster for someone who handles this kind of stuff routinely to just

>> implement these changes themselves.
>> Thanks,
>> Kevin M.
>> tiffdump - added the following new options:
>> -i - restricts output to a specific tag id
>> -b - bare output format, omits file and tag header information under
>> appropriate conditions
>> -e - end of line fixup for bare format output, converts nulls and end of
>> line characters to appropriate host values
>> -r - raw output format, produces unformatted binary tag data

>> The above options were primarily implemented to better facilitate using >> tiffdump to extract specific tag data from tiff files in formats that can

>> be
>> more easily piped into subsequent filters for further processing.
>> Previous
>> behavior remains unchanged if the new options are not used.
>> Examples:
>> C:\MSVC8\tiff-3.8.2\Release>tiffdump
>> Usage: tiffdump [options] file.tif...
>> Data selection options: [-i <tagId>] [-o <offset>] [-m <maxitems>]
>> Output formatting options: [-b]=bare, [-r]=raw, [-e]=EOL fixup, [-h]=hex
>> Tag headers always printed if tagId (-i) option not specified.
>> File headers always printed for multiple input files.
>> C:\MSVC8\tiff-3.8.2\Release>tiffdump -i 306 -m 200 -b -e
>> ..\test\test0.tif
>> 1999:12:07 19:32:49
>> tiffset - added the following new option:
>> -t - specifies the data type for unrecognized tags and allows their data
>> to
>> be set
>> The above option was primarily implemented to allow tiffset to be used as
>> a

>> simple tool for setting the value of almost any tag, whether support for >> that specific tag is presently built into libtiff or not. Previous

>> behavior

>> remains unchanged if the new option is not used. The new option does not >> allow the correct data types for built-in tags to be altered.

>> Examples:
>> C:\MSVC8\tiff-3.8.2\Release>tiffset
>> usage: tiffset [options] tiff-filename
>> where options are:
>> -t <data type> set data type for unknown tags, precedes -s or -sf if
>> used
>> -s <tagname> [count] <value>... set the tag value
>> -sf <tagname> <data filename> read tag value from file (ASCII tags
>> only)
>> C:\MSVC8\tiff-3.8.2\Release>tiffset -t 2 -s 65000 testing
>> ..\test\test.tif
>> C:\MSVC8\tiff-3.8.2\Release>tiffdump -i 65000 ..\test\test.tif
>> ..\test\test.tif:
>> Magic: 0x4d4d <big-endian> Version: 0x2a
>> Directory 0: offset 1819464 (0x1bc348) next 0 (0)
>> 65000 (0xfde8) ASCII (2) 8<testing\0>