Commit Graph

435 Commits

Author SHA1 Message Date
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
Bob Friesenhahn
0bb0df6024 * tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf
format.
* tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs.
2005-12-29 00:15:56 +00:00
Andrey Kiselev
f7f87d0e1d Avoid warnings. 2005-12-27 12:20:53 +00:00
Bob Friesenhahn
a45bff3b5a * libtiff/tif_jpeg.c: Improve compilation under MinGW. 2005-12-27 00:08:14 +00:00
Andrey Kiselev
038f178e4b Added many error reporting messages; fixed integer overflow as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=789
2005-12-20 16:50:21 +00:00
Andrey Kiselev
52cdf33845 Return non-zero status when reading fails (again). 2005-12-14 13:59:52 +00:00
Andrey Kiselev
b1ec8c0aee Return non-zero status when reading fails. 2005-12-13 16:42:39 +00:00
Andrey Kiselev
796777f5c5 Print EXIF directory contents if exist. 2005-12-09 14:52:48 +00:00
Andrey Kiselev
1fd9c5e60b Added version reporting when running without parameters. 2005-12-06 22:18:13 +00:00
Frank Warmerdam
b86f199feb preliminary support for MS MDI format, bug 1002 2005-11-21 03:35:05 +00:00
Frank Warmerdam
60867efab2 Added .libs and .deps. 2005-11-21 01:05:57 +00:00
Andrey Kiselev
9f662299df Properly calculate sizes of temporary arrays as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=943
2005-10-31 14:48:59 +00:00
Andrey Kiselev
dcbd209375 Added option '-r' to set RowsPerStrip parameter as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=944
2005-10-31 13:40:38 +00:00
Andrey Kiselev
7a09fc0735 Typo fixed. 2005-10-31 13:31:10 +00:00
Andrey Kiselev
8c703c1e6e Fixed typeshift and typemask arrays initialization problem as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=946
2005-10-31 13:08:19 +00:00
Andrey Kiselev
85c3925771 Fixed possible integer overflow error as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=965
2005-10-31 12:59:30 +00:00
Andrey Kiselev
9640ac3133 Copy fax related fields over splitted parts as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=983
2005-10-31 12:08:17 +00:00
Andrey Kiselev
ad6776b90d Fixed crash when reading malformed tags. 2005-09-28 12:10:22 +00:00
Andrey Kiselev
d753432f58 Added missed 'break' statement as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=932
2005-09-20 11:19:38 +00:00
Andrey Kiselev
9ece518261 Avoid warnings. 2005-09-13 14:09:10 +00:00
Andrey Kiselev
76346d1aeb Avoid warnings. 2005-09-13 13:40:48 +00:00
Andrey Kiselev
aa3a68ca4d Avoid warnings. 2005-09-13 13:17:57 +00:00
Andrey Kiselev
a63512c436 libtiff 3.7.4 released. 2005-09-12 14:04:01 +00:00
Andrey Kiselev
7f535ed3f1 Added support for TIFF_IFD datatype. 2005-07-25 13:48:58 +00:00
Andrey Kiselev
f41cf89f4c *** empty log message *** 2005-07-12 16:07:43 +00:00
Andrey Kiselev
d83db532b1 Fixed WhitePoint tag copying. 2005-07-06 11:38:17 +00:00
Andrey Kiselev
dcbfebbb38 *** empty log message *** 2005-06-23 13:38:13 +00:00
Andrey Kiselev
9bc7885982 Print two characters per loop in the t2p_write_pdf_trailer(). As per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=594
2005-06-23 13:28:33 +00:00
Andrey Kiselev
180a3afd4a Use MacOS X OpenGL framework when appropriate. As per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=844
2005-06-23 11:50:05 +00:00
Andrey Kiselev
9a8e13c032 Avoid warnings. 2005-06-23 11:27:35 +00:00
Andrey Kiselev
10279e08aa Avoid warnings. 2005-06-23 10:54:02 +00:00
Andrey Kiselev
baffebb4f2 Few optimizations for tiffgt target. 2005-06-02 08:29:19 +00:00
Andrey Kiselev
f0240f75fe Include tif_config.h. 2005-05-26 18:42:56 +00:00
Andrey Kiselev
db6a96056d Fixed format string when read PPM file header with the fscanf() function. As
per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=861
2005-05-25 13:36:56 +00:00
Andrey Kiselev
1ca5b48653 Avoid warnings. 2005-05-25 10:35:13 +00:00
Andrey Kiselev
53fb873cc2 Check for JPEGTables tag presence before copying. 2005-05-17 14:18:48 +00:00
Andrey Kiselev
db9bba1c19 Calculate the tilewidth properly; added new option '-b' to use interpolation
in output PDF files (Bruno Ledoux).
2005-05-05 20:52:57 +00:00
Andrey Kiselev
46f2c1aa78 Copy the PhotometricInterpretation tag from the input file. 2005-04-27 18:37:19 +00:00
Andrey Kiselev
e09ee59337 Use Adobe Deflate compression code instead of old deflate code. 2005-04-15 17:50:09 +00:00
Andrey Kiselev
40ae66301e Use libtool machinery to pass rpath option. 2005-03-22 10:33:04 +00:00
Andrey Kiselev
8745b7866e Fixed problem with alpha channel handling as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=794
2005-03-18 09:47:34 +00:00
Andrey Kiselev
ca3bdcae22 Fixed typo in page size handling code. 2005-03-17 14:41:59 +00:00
Andrey Kiselev
26134656a4 Added ability to compare the 32-bit integer and floating point data; complain
on unsupported bit depths.
2005-03-09 12:08:30 +00:00
Andrey Kiselev
185a73a37a Regenerated. 2005-03-08 19:16:14 +00:00
Andrey Kiselev
960dc2cc3d Use properly sized buffer in short arrays compirison as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=785
2005-03-04 10:25:24 +00:00
Andrey Kiselev
546e7e62b7 Replace insecure mktemp() function with the tmpfile() as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=78
2005-03-03 12:48:31 +00:00
Frank Warmerdam
d1e479c9a4 Updated header. 2005-02-24 14:47:11 +00:00
Andrey Kiselev
2348dccc56 Calculate margins taking in account resolution unit (Richard Nolde). 2005-02-06 17:58:01 +00:00
Bob Friesenhahn
97367b465e * tools/tiffgt.c: Fix problem on big-endian CPUs so that images
display more correctly.  Images display brighter than they should
on a Sun workstation.
2005-02-03 19:46:49 +00:00
Andrey Kiselev
6860033832 Fixed problem with page sizes as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=742
2005-02-03 17:02:19 +00:00
Andrey Kiselev
c0d1f11f57 *** empty log message *** 2005-01-15 17:24:52 +00:00
Andrey Kiselev
007d721820 Interpret the -w and -h options independently. As per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=689
2005-01-12 12:51:26 +00:00
Andrey Kiselev
6be3d0ae56 Move the C++ stuff in the separate library called libtiffxx. 2005-01-11 15:07:06 +00:00
Andrey Kiselev
2988cbc5cc Fixed problem when read broken TIFFs with the wrong tag counts (Dmitry V.
Levin, Martin Pitt).
2005-01-05 20:38:38 +00:00
Andrey Kiselev
dcc1d61d82 Convert character option to integer value as per
bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725
2004-12-25 20:17:00 +00:00
Andrey Kiselev
ffcc0cda93 libtiff 3.7.1 released. 2004-12-20 19:43:34 +00:00
Andrey Kiselev
be71b688b7 Updated. 2004-12-16 19:19:09 +00:00
Bob Friesenhahn
aa8ccdf669 * libtiff/tif_jpeg.c: Added a work-around in order to allow
compilation with the heavily modified version of libjpeg delivered
with Cygwin.
2004-12-01 01:59:10 +00:00
Andrey Kiselev
d9845f725c Be able to extract the first page (#0). As per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=690
2004-11-29 16:20:30 +00:00
Andrey Kiselev
7f8e225500 Avoid warnings. 2004-11-28 14:44:31 +00:00
Andrey Kiselev
3ea29bb2c0 *** empty log message *** 2004-11-21 16:28:42 +00:00
Andrey Kiselev
87a689dc5b Check the malloc results. 2004-11-13 18:50:24 +00:00
Andrey Kiselev
f9fb6c863e Regenerated from templates. 2004-11-11 14:47:47 +00:00
Andrey Kiselev
c401cfbdd9 Properly handle the different tag types. As per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=600
2004-11-11 11:18:09 +00:00
Frank Warmerdam
2e43d3e0ab removed extra newlines in usage message 2004-11-03 00:28:24 +00:00
Andrey Kiselev
167d8a7378 Fixed wrong variable data type when read Position tags (Tristan Hill). 2004-10-30 13:46:33 +00:00
Andrey Kiselev
c575a7fbf6 Avoid warnings. 2004-10-30 10:34:12 +00:00
Andrey Kiselev
6572c7ae4c Fixed wrong variable data type when read Resolution tags (Peter Fales). 2004-10-28 17:56:46 +00:00
Andrey Kiselev
c53d8187bf Get rid of stream I/O functions. 2004-10-28 14:35:50 +00:00
Andrey Kiselev
182977f9dd Get rid of stream I/O functions. 2004-10-28 14:30:17 +00:00
Frank Warmerdam
0db378ab84 provide explicit unsigned char casts for a few values to avoid warnings 2004-10-28 13:32:28 +00:00
Andrey Kiselev
e921b6d3a8 Check the malloc return value (Dmitry V. Levin). 2004-10-26 18:22:47 +00:00
Andrey Kiselev
542625aabe USe autoconf 1.9.2. 2004-10-15 07:50:45 +00:00
Andrey Kiselev
9c94241dae Fixes in help message. 2004-10-15 07:50:15 +00:00
Bob Friesenhahn
f9335b105d * tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid
conflict noticed under MinGW.
* ltmain.sh: Fix for MinGW compilation.
2004-10-14 04:53:56 +00:00
Andrey Kiselev
0244fc4839 Check the space allocation results. 2004-10-10 12:33:18 +00:00
Andrey Kiselev
fc2fea250f Readability fixes. 2004-10-10 11:58:16 +00:00
Andrey Kiselev
d7e1ac10e9 Move _TIFFmemset() behind the pointer check in t2p_init(). 2004-10-10 11:38:34 +00:00
Andrey Kiselev
4d968f4ac2 Fixed TransferFunction tag handling reported by Ross A. Finlayson. 2004-10-09 14:15:07 +00:00
Bob Friesenhahn
54d78d3e2b * contrib/iptcutil/README: Added the missing README which goes
along with iptcutil.
2004-10-05 01:28:40 +00:00
Andrey Kiselev
7111f6fbfa Write ImageWidth/Height tags to output file, as noted by Gennady Khokhorin. 2004-09-25 18:45:31 +00:00
Andrey Kiselev
6e08e7728d Avoid warnings. 2004-09-21 13:24:00 +00:00
Andrey Kiselev
9199e8d328 Avoid warnings. 2004-09-21 12:45:46 +00:00
Andrey Kiselev
2ed2911af2 Avoid warnings. 2004-09-21 12:36:02 +00:00
Andrey Kiselev
77e3c70670 Avoid warnings. 2004-09-21 12:16:51 +00:00
Andrey Kiselev
e758fc849e libtiff 3.7.0beta released. 2004-09-19 10:44:18 +00:00
Bob Friesenhahn
d0318870ba Fix tiffgt compilation. 2004-09-12 16:40:39 +00:00