Commit Graph

2466 Commits

Author SHA1 Message Date
Bob Friesenhahn
506c21992e * test/tiffcrop.sh: New test script for tiffcrop from Richard
Nolde.

* tools/tiff2ps.c: Remove spurious message to stderr.
2009-01-12 16:23:11 +00:00
Bob Friesenhahn
771a4ea0a9 Updates for tiff2ps.1 2009-01-12 02:05:19 +00:00
Bob Friesenhahn
d99686ccb2 * tools/tiff2ps.c: Incorporated significant functionality update
from Richard Nolde.  In particular, support for rotating the image
by 90, 180, 270, and 'auto' has been added.  Still waiting for
documentation patch to man/tiff2ps.1.

* man/tiffcrop.1: Incorporated documentation updates from Richard
Nolde.

* tools/tiffcrop.c: Incorporated significant functionality update
from Richard Nolde.
2009-01-11 20:04:22 +00:00
Frank Warmerdam
04d7332676 test commit 2009-01-02 03:48:45 +00:00
Bob Friesenhahn
953d02c32d * libtiff/tiffio.h: GCC will now validate format specifications
for TIFFError(), TIFFErrorExt(), TIFFWarning(), and
TIFFWarningExt() in order to reveal bugs.
* Many fixes throughout to work better as a 64-bit build.
2008-12-31 23:48:01 +00:00
Bob Friesenhahn
968401fdf3 * tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length
tags now require 64-bit parameter rather than 32-bit.
* libtiff/tif_dirread.c: Fixed issues with unaligned access to
64-bit values.
2008-12-31 03:06:27 +00:00
Bob Friesenhahn
f44e642634 * tools/thumbnail.c: Eliminate crash noticed while running test
suite.
2008-12-30 22:20:35 +00:00
Bob Friesenhahn
bb9ee50811 Don't throw away output to stderr. Collect and display it if there is an error. 2008-12-30 21:59:54 +00:00
Bob Friesenhahn
a6294fe089 * libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer):
Initialize stack variables to avoid compiler warning.
2008-12-30 01:36:26 +00:00
Bob Friesenhahn
527802616e * tools/tiffinfoce.c (main): Use toff_t for offset type when
retrieving offset of EXIF IFD.
2008-12-30 01:28:25 +00:00
Bob Friesenhahn
226f5fd57e * libtiff/tiffio.h: Undeprecate toff_t and restore its use in the
TIFFClientOpen() callback and other external function definitions.
2008-12-30 00:39:22 +00:00
Bob Friesenhahn
164884d67d Use toff_t rather than uint64 since it is a safer interface. 2008-12-30 00:12:11 +00:00
Bob Friesenhahn
dbd1873ffa * tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit
type now.  Fixes crash when dumping files containing an EXIF IFD.
* m4/libtool.m4: Update to libtool 2.2.6.
2008-12-29 23:44:18 +00:00
Frank Warmerdam
bb8117904c minor formatting changes 2008-12-21 21:07:05 +00:00
Frank Warmerdam
810460b4d9 ensure we flush dirty directories even if no imagery written 2008-12-21 20:31:33 +00:00
Frank Warmerdam
a5a412f6d3 introduce TIFFUnsetField() function 2008-12-21 20:30:25 +00:00
Frank Warmerdam
54bf10fcbc avoid errors on last partial strip (#1981) 2008-12-21 20:13:38 +00:00
Frank Warmerdam
203fc17cb4 include tiffcrop 2008-12-13 15:23:15 +00:00
Frank Warmerdam
a4459c9e10 clear BEENWRITING in TIFFlush() after writing strip/tile offsets (#2621) 2008-10-30 01:25:11 +00:00
Andrey Kiselev
229167b1d1 Support the JBIG-KIT 2.0 (compatibility with the older versions retained). 2008-10-21 13:16:59 +00:00
Frank Warmerdam
0cf3016d0c added file io changes needed for IPP libjpeg compatability (#1951) 2008-10-10 01:48:36 +00:00
Andrey Kiselev
28aee36491 *** empty log message *** 2008-09-05 07:07:02 +00:00
Andrey Kiselev
9498770c99 Use byte counts of proper size (uint64). Required for libtiff 4.0. 2008-09-05 07:06:26 +00:00
Andrey Kiselev
6ae8a4bd73 Use dynamically allocated array instead of static when constructing
output file names.
2008-09-05 06:44:32 +00:00
Frank Warmerdam
ccbfac98d3 New 2008-09-03 15:53:08 +00:00
Andrey Kiselev
35152cd29e Bugzilla links updated; added list of maintainers. 2008-09-03 08:05:04 +00:00
Andrey Kiselev
355696533d *** empty log message *** 2008-09-03 07:48:52 +00:00
Andrey Kiselev
a1a53f9c74 Get rid of unsafe strcpy()/strcat() calls when doing the filename/path
construction.
2008-09-03 07:47:26 +00:00
Andrey Kiselev
3498398196 More appropriate format string in t2p_write_pdf_string(); avoid
signed/unsigned mismatch.
2008-09-03 07:35:25 +00:00
Andrey Kiselev
187c6f11ea Properly zero out the codetable. As per bug
http://bugzilla.maptools.org/show_bug.cgi?id=1929
2008-09-03 07:16:09 +00:00
Andrey Kiselev
aef997530c Properly zero out the string table. Fixes CVE-2008-2327 security issue. 2008-09-03 07:07:22 +00:00
Frank Warmerdam
9fa82bfb78 fix typo with status, and supress stderr output 2008-09-02 02:26:19 +00:00
Frank Warmerdam
80ca2298a3 avoid warnings about TIFFReadDirEntryFloat(), etc 2008-09-01 23:26:27 +00:00
Frank Warmerdam
11e620b7f9 modified to write IFDs as either IFD8 or IFD depending on whether the file
is bigtiff or classic tiff. http://bugzilla.maptools.org/show_bug.cgi?id=1917
2008-09-01 23:18:19 +00:00
Frank Warmerdam
943e72e954 added Lee as a co-maintainer 2008-09-01 22:05:21 +00:00
Bob Friesenhahn
8d2fe9f4e2 * tools/tiffdump.c: When compiling for Microsoft Windows, apply
consistent (__int64) casting when testing if _lseeki64 has
successfully seeked as requested.  This is necessary for large
file support to work since off_t is only 32-bit.
2008-08-12 21:52:03 +00:00
Frank Warmerdam
743808438f Return an error rather than just asserting on invalid samples per
pixel or subsampling ratios (#1927).
2008-07-29 19:51:07 +00:00
Frank Warmerdam
60205a8369 note leak of anonymous field structure 2008-07-29 18:45:40 +00:00
Frank Warmerdam
6e6e603753 fix some portability and warning issues with tiffcrop 2008-06-17 20:16:54 +00:00
Frank Warmerdam
1468d4291f use same jpeg hacks for win32 as in tif_jpeg.c 2008-06-17 19:48:22 +00:00
Frank Warmerdam
c7d28f4ba8 Ensure TIFFOpenW() uses same FILE_SHARE flags as TIFFOpen() 2008-06-17 18:47:03 +00:00
Frank Warmerdam
4594f2dcf2 fix alignment problems for architectures like Sparc (#1892) 2008-06-01 13:11:18 +00:00
Frank Warmerdam
80e50e5564 add TIFFFindField() to libtiff.def (#1891) 2008-05-27 16:26:16 +00:00
Frank Warmerdam
dfb5da9ad4 remove SIZEOF_LONG macro as it is unused 2008-05-26 19:05:51 +00:00
Frank Warmerdam
27ebd800ef remove use of GlobalAlloc() (bug 1885) 2008-05-26 15:38:31 +00:00
Frank Warmerdam
eac1a5bc85 Clarify comment on lfind(). 2008-05-26 15:17:09 +00:00
Frank Warmerdam
faf612679b list JBIG_SUPPORT and MDI_SUPPORT in win32 header 2008-05-26 15:09:56 +00:00
Frank Warmerdam
ac20f33758 fix unchecked malloc result 2008-05-25 03:11:33 +00:00
Frank Warmerdam
6af761b24c avoid possible NULL in error 2008-05-25 03:10:55 +00:00
Bob Friesenhahn
a4e657cc8a * test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh
tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh
tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh
tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh
tiffdump.sh tiffinfo.sh}: Added more test scripts based on
suggestions from Lee Howard posted to the tiff list on 13 Sep
2007.
2008-05-24 22:24:25 +00:00