Commit Graph

421 Commits

Author SHA1 Message Date
Frank Warmerdam
46bac877c5 avoid 32/64bit casting warnings 2009-01-22 21:12:45 +00:00
Frank Warmerdam
c4c1a95ce4 fix ordering to avoid getopt redeclaration 2009-01-22 20:59:33 +00:00
Frank Warmerdam
3db9feb595 introduce libport.h prototypes to reduce warnings 2009-01-22 20:53:07 +00:00
Frank Warmerdam
01e6d4c022 tiffsplit.c: fix sampleformat to be shortv instead of longv 2009-01-21 04:42:10 +00:00
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
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
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
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
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
203fc17cb4 include tiffcrop 2008-12-13 15:23:15 +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
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
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
6e6e603753 fix some portability and warning issues with tiffcrop 2008-06-17 20:16:54 +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
Frank Warmerdam
90c84b3440 major update from Richard Nolde (#1888) 2008-05-24 00:18:55 +00:00
Frank Warmerdam
8a241d9f11 avoid leaks, dead code 2008-05-23 19:52:49 +00:00
Frank Warmerdam
09fe8fabf4 fix some coverity reported problems 2008-05-23 17:24:41 +00:00
Frank Warmerdam
d4099b8eee update for 4.0.0beta1 release 2008-05-18 16:25:47 +00:00
Bob Friesenhahn
9015352474 * Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like
"ACLOCAL_AMFLAGS=-I ./m4".  It wants "ACLOCAL_AMFLAGS=-I m4".
2008-05-09 16:20:49 +00:00
Andrey Kiselev
33dbe6c262 Added support for MSVS 6.0. 2008-04-09 09:33:30 +00:00
Frank Warmerdam
e9cb45c2ee fix 64bit type issues 2008-01-07 15:47:54 +00:00
Frank Warmerdam
2e8e250054 Fix clean rules to be more precise, avoiding warnings from "del"
when running them after a full build.
2008-01-01 15:53:10 +00:00
Frank Warmerdam
41feaacb78 Fix 64-bit warnings when compiling under MSVC 2005 (x64). 2008-01-01 15:49:00 +00:00
Frank Warmerdam
bee6b8237d Changes to reflect the fact that TIFFFieldWithTag() and TIFFFieldWithName()
now return TIFFField pointers instead of TIFFFieldInfo pointers.
2008-01-01 15:46:28 +00:00
Frank Warmerdam
3e75fc789f Added ssize_t typedef on Windows since it doesn't exist. This makes
it compile again on Windows.
2008-01-01 15:45:14 +00:00
Frank Warmerdam
8e40470908 Fix problem with alpha setting 2007-10-05 16:30:18 +00:00
Bob Friesenhahn
2737e0e77b * test/images: Added a small collection of test images for use by
test programs and scripts.
* test/tiffinfo.sh: A trivial example test script.
* test/common.sh: Added small script for setting the environment
used by script-based tests.
2007-09-19 21:51:00 +00:00
Andrey Kiselev
42bed3384e libtiff 4.0.0alpha released. 2007-07-13 14:57:37 +00:00
Andrey Kiselev
612fe33e9d Mapping routines definitions fixed. 2007-07-12 17:32:53 +00:00
Andrey Kiselev
3716b22ae8 Added missed extern optind. 2007-07-12 17:25:12 +00:00
Bob Friesenhahn
b2328c5b5d * libtiff/tif_stream.cxx: Adapt to use toff_t again. Update to
use standard C++ library size types and attempt to detect overflow
cases.
2007-07-11 20:27:14 +00:00
Bob Friesenhahn
de5235e3af * tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not
defined.
2007-07-06 01:25:11 +00:00
Andrey Kiselev
e16f59e6e2 Number of problems fixed; now this utility can be built with gcc. 2007-07-04 11:31:36 +00:00
Andrey Kiselev
bf903e0588 Added support 16-bit images as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1566
Patch from William Bader.
2007-07-03 16:00:53 +00:00
Andrey Kiselev
9a19c1e905 Fix for TIFFTAG_JPEGTABLES tag fetching and significant upgrade of the whole
utility as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1560
Now we don't need tiffiop.h in tiff2pdf anymore and will open output PDF file
using TIFFClientOpen() machinery as it is implemented by Leon Bottou.
2007-07-03 15:47:05 +00:00
Andrey Kiselev
f14d1a5636 All makefile templates regenerated. 2007-06-27 12:03:37 +00:00
Bob Friesenhahn
671e370838 Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic. 2007-06-26 20:05:33 +00:00
Bob Friesenhahn
71b780383f Hopefully fixed botched upgrade of libtool. 2007-06-26 16:38:43 +00:00
Bob Friesenhahn
8c4398d0d6 * port/strtoull.c: New porting function in case strtoull() is not
available on the target system.
* configure.ac: Add configure support for determining sized types
in a portable way and performing necessary substitutions in
tif_config.h and tiffconf.h.  Updated tiff.h to use the new
definitions.
2007-06-25 15:38:21 +00:00
Joris Van Damme
70b42a0259 BigTIFF upgrade: tiffcp.c 2007-06-20 08:36:42 +00:00
Joris Van Damme
4bd2d780ce BigTIFF upgrade: tiffcp.c 2007-06-20 08:35:57 +00:00
Joris Van Damme
78faf04967 BigTIFF upgrade: tiff2rgba.c (last minute correction) 2007-06-13 14:21:59 +00:00
Joris Van Damme
140aefa242 BigTIFF upgrade: tiff2rgba.c 2007-06-13 14:14:03 +00:00
Joris Van Damme
6b42b6bad5 BigTIFF upgrade: tiffdump.c, complete except for IO standard library functions 2007-06-13 13:01:43 +00:00
Joris Van Damme
6696d959b5 BigTIFF upgrade: tiffinfo.c 2007-06-12 13:08:09 +00:00
Andrey Kiselev
85cec3b0a7 Check the tmpfile() return status as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=154
2007-04-27 16:47:14 +00:00
Andrey Kiselev
d47a85ce37 Avoid warnings. 2007-04-18 08:46:33 +00:00
Andrey Kiselev
dc8ae28aa2 Significant update in functionsality as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1525
2007-04-06 14:23:54 +00:00
Andrey Kiselev
c29dea9440 Properly handle tags with TIFF_VARIABLE writecount. As per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1350
2007-02-24 17:14:14 +00:00
Andrey Kiselev
c4f2e5b44e Do not assume inches when the resolution units do not specified. As per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1366
2007-02-24 16:28:48 +00:00
Andrey Kiselev
db88776e03 Do not change RowsPerStrip value if it was set as infinite. As per bug:
http://bugzilla.remotesensing.org/show_bug.cgi?id=1368
2007-02-24 15:57:01 +00:00
Andrey Kiselev
e82a93e642 Use strchr() instead of index(); avoid warnings. 2007-02-24 15:27:15 +00:00
Andrey Kiselev
2ad35de456 Added tiffcrop utility. 2007-02-24 15:26:09 +00:00
Andrey Kiselev
ef833c655f Regenerated. 2007-02-24 15:03:47 +00:00
Andrey Kiselev
bddf26622c New. 2007-02-24 14:48:01 +00:00
Andrey Kiselev
c0123c7895 This utility does not work properly on big-endian architectures. It was fixed
including the bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1149
2007-01-31 14:46:59 +00:00
Andrey Kiselev
7fd8cdbe99 Attempt to fix bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1149 2007-01-27 18:38:34 +00:00
Mateusz Loskot
367a35efb3 TIFF library ported to Windows CE platform. 2007-01-15 18:40:39 +00:00
Andrey Kiselev
c905dc9878 tiffset.exe added to the list of utilities to be build. 2006-10-13 11:06:07 +00:00
Andrey Kiselev
576c461a28 Get rid of BSD integer types as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1319
2006-10-13 10:26:56 +00:00
Frank Warmerdam
06ab41916f Fix handling of -q values. (bug 587) 2006-06-19 20:12:07 +00:00
Andrey Kiselev
5a80b5f42e Fixed floating point comparison logic as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1191
2006-06-08 11:52:27 +00:00
Andrey Kiselev
3c3ae7d37c More fixes for character type safety. 2006-06-08 11:27:11 +00:00
Andrey Kiselev
a0fdd6eb0c Fixed buffer overflow condition in t2p_write_pdf_string() as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1196
2006-06-08 10:45:35 +00:00
Andrey Kiselev
01a173d4b8 Added help line for 'jbig' compression option. 2006-06-07 16:34:32 +00:00
Andrey Kiselev
514fb56f86 Regenerated. 2006-06-07 15:55:20 +00:00
Andrey Kiselev
9ff07be06c Added support for JBIG compression scheme (34661 code) contributed by Lee
Howard. As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=896
2006-06-07 15:47:43 +00:00
Bob Friesenhahn
56f599add1 * libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in
TIFFPrintDirectory().  Joris Van Damme authored the fix.
2006-06-03 15:28:29 +00:00
Andrey Kiselev
f7035cc549 Unified line ending characters (always use '\n') as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1163
2006-04-21 15:09:34 +00:00
Andrey Kiselev
550cfd7a32 Properly set the binary mode for stdin stream as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1141
2006-04-20 12:36:23 +00:00
Andrey Kiselev
e3fe101bf5 Fixed typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139 2006-04-20 12:04:35 +00:00
Andrey Kiselev
b90b47e6f7 libtiff 3.8.2 released. 2006-03-23 14:54:00 +00:00
Andrey Kiselev
bd5bff3cf6 Use runtime paths linker flags when rpath option enabled. 2006-03-23 14:23:43 +00:00
Andrey Kiselev
fb8fe4b17f Makefiles improvements as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1128
2006-03-21 16:41:07 +00:00
Andrey Kiselev
bc6736f91d Fixed win32 I/O functions usage as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1127
2006-03-21 16:37:51 +00:00
Andrey Kiselev
b5a9d9642e Do not set RowsPerStrip bigger than image length. 2006-03-21 16:24:33 +00:00
Andrey Kiselev
ee7446ab86 Avoid warnings. 2006-03-20 15:29:53 +00:00
Andrey Kiselev
08300a98ec Fixed wrong TIFFerror() invocations as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1125
2006-03-17 14:58:57 +00:00
Andrey Kiselev
9ebb2b1a85 Fixed reading the input stream from stdin as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1124
2006-03-17 14:56:42 +00:00
Andrey Kiselev
a243e2c9a5 Do not set RowsPerStrip larger than ImageLength. As per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1110
2006-03-15 12:48:24 +00:00
Andrey Kiselev
0dcb9ef111 libtiff 3.8.1 released. 2006-03-13 15:06:17 +00:00
Andrey Kiselev
71818ed599 Added support for PBM files as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1044
2006-03-01 10:41:24 +00:00
Andrey Kiselev
2aad3477e6 Functions t2p_sample_rgbaa_to_rgb() and t2p_sample_rgba_to_rgb() was used in
place of each other, that was resulted in problems with RGBA images with
associated alpha. As per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1097
2006-02-26 17:55:42 +00:00
Andrey Kiselev
6923ef1e64 Properly scale all the pages when converting multipage TIFF with
/width/height/center options set. As per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1080
2006-02-23 14:50:32 +00:00
Andrey Kiselev
035bbb2d62 Do not create output file until all option checks will be done. As per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1072
2006-02-15 13:33:59 +00:00
Andrey Kiselev
d4438d6fd4 Added ability to create multipage TIFFs from the list of input files as per
bug: http://bugzilla.remotesensing.org/show_bug.cgi?id=1077
2006-02-15 13:12:30 +00:00
Andrey Kiselev
be7063caea Avoid crashing in case of image unsupported by TIFFRGBAImage interface. 2006-02-09 16:00:34 +00:00
Frank Warmerdam
0a02af9e2d fix for non-YCbCr jpeg compressed files 2006-02-07 14:28:48 +00:00
Andrey Kiselev
4ae296c255 Help message formatting fixed. 2006-02-07 11:08:31 +00:00
Andrey Kiselev
f714980a3d libtool related stuff updated from the 2.1a branch. 2006-01-23 18:21:45 +00:00
Frank Warmerdam
4cef528582 fixed last jpeg processing patch 2006-01-11 17:03:43 +00:00
Frank Warmerdam
3949657664 fix jpeg tool option processing: bug 1025 2006-01-11 16:59:35 +00:00
Andrey Kiselev
0776b32d29 3.8.0 released. 2005-12-29 22:01:44 +00:00
Bob Friesenhahn
b3f4f82894 * tools/bmp2tiff.c (main): Fixed warning regarding returning
inconsistent types from a condition.
2005-12-29 00:33:51 +00:00