Commit Graph

113 Commits

Author SHA1 Message Date
Bob Friesenhahn
519b727004 * configure.ac: Support configuring TIFF_INT64_FORMAT and
TIFF_UINT64_FORMAT appropriately for MinGW32.

* tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32
printf conventions for 64-bit types because it uses the WIN32 CRT.

* libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c,
tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32
printf conventions for 64-bit types because it uses the WIN32 CRT.

* tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not
understood by WIN32 CRT.
2011-04-02 20:54:08 +00:00
Lee Howard
3cb55ee486 * tools/tiff2pdf.c: fix colors for images with RGBA
interleaved data
        http://bugzilla.maptools.org/show_bug.cgi?id=2250
2010-12-13 05:41:38 +00:00
Lee Howard
3c383d15fa * tools/tiff2pdf.c: remove invalid duplication for Lab
http://bugzilla.maptools.org/show_bug.cgi?id=2162
2010-12-12 06:58:26 +00:00
Lee Howard
e70efefb35 * tools/tiff2pdf.c: add fill-page option
http://bugzilla.maptools.org/show_bug.cgi?id=2051
2010-12-11 22:47:49 +00:00
Lee Howard
b3c5153919 If it doesn't fail, then it succeeds. 2010-11-28 15:35:12 +00:00
Andrey Kiselev
548b403d10 Fixed ID buffer filling in t2p_write_pdf_trailer(), thanks to Dmitry V. Levin. 2010-07-08 09:37:52 +00:00
Andrey Kiselev
5122fdb3e0 *** empty log message *** 2010-06-30 16:04:50 +00:00
Andrey Kiselev
5a48f5167f *** empty log message *** 2010-06-30 15:41:49 +00:00
Andrey Kiselev
f4eff24f63 *** empty log message *** 2010-06-30 14:12:03 +00:00
Bob Friesenhahn
e3538640b6 C files should not use C++ style comments. 2010-06-21 19:09:26 +00:00
Frank Warmerdam
75f7f78120 various fixes for tiff2pdf (#2211) 2010-06-13 19:25:54 +00:00
Bob Friesenhahn
4e0d97f83c * libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so
that it is clearly a memory allocation error message, and also
includes the size of the allocation request.
2010-03-10 18:56:48 +00:00
Lee Howard
d473b19b31 * libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating
the JPEG TIFF as is is not required in order to prevent it from
        being unused and filled with invalid data.  (Leave it to be
        generated by later activity.)
        * tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip
        data rather than skipping them.  This fixes the ability to view in
        Acrobat Reader, Evince, and Ghostscript.
2010-02-22 19:10:07 +00:00
Frank Warmerdam
46bac877c5 avoid 32/64bit casting warnings 2009-01-22 21:12:45 +00:00
Frank Warmerdam
3db9feb595 introduce libport.h prototypes to reduce warnings 2009-01-22 20:53:07 +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
Andrey Kiselev
3498398196 More appropriate format string in t2p_write_pdf_string(); avoid
signed/unsigned mismatch.
2008-09-03 07:35:25 +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
8e40470908 Fix problem with alpha setting 2007-10-05 16:30:18 +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
de5235e3af * tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not
defined.
2007-07-06 01:25:11 +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
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
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
Frank Warmerdam
06ab41916f Fix handling of -q values. (bug 587) 2006-06-19 20:12:07 +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
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
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
ee7446ab86 Avoid warnings. 2006-03-20 15:29:53 +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
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
Frank Warmerdam
0a02af9e2d fix for non-YCbCr jpeg compressed files 2006-02-07 14:28:48 +00:00
Andrey Kiselev
f7f87d0e1d Avoid warnings. 2005-12-27 12:20:53 +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
76346d1aeb Avoid warnings. 2005-09-13 13:40:48 +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
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
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
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
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
Andrey Kiselev
e3f2f56044 Fixed reading TransferFunction tag as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=590
2004-09-10 11:50:57 +00:00
Andrey Kiselev
3446c24799 Work out getopt problems. 2004-08-25 18:34:55 +00:00
Andrey Kiselev
0d1363b9db Initialize arrays properly. 2004-08-25 13:43:14 +00:00
Andrey Kiselev
8c15798606 More fixes for bug http://bugzilla.remotesensing.org/show_bug.cgi?id=590
from Ross Finlayson.
2004-08-24 07:48:36 +00:00
Andrey Kiselev
80675eb205 Fixed a bunch of problems as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=590
2004-08-23 12:00:30 +00:00
Andrey Kiselev
442be0e95d More fixes from Ross. 2004-08-21 08:09:49 +00:00
Andrey Kiselev
9f25189d68 Applied patch from Ross Finlayson that checks that the input file has
compression, photometric interpretation, etcetra, tags or if not than a more
descriptive error is returned.
2004-08-20 19:23:25 +00:00
Andrey Kiselev
cf7d2a38c4 Avoid warnings. 2004-06-04 13:46:25 +00:00
Andrey Kiselev
82a4bcedb1 Get rid of __T() macro; avoid warnings. 2004-05-26 09:24:07 +00:00
Andrey Kiselev
6302224e7f Fixed problem with unaligned access as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=555
2004-04-20 14:54:05 +00:00
Andrey Kiselev
0545efcb1d Obsoleted configuration switches removed. 2004-04-20 14:24:31 +00:00
Andrey Kiselev
58117ffafa Get rid of C++ style comments. 2004-01-26 17:00:55 +00:00
Ross Finlayson
80a9dce49d Some bugs fixed. 2003-12-01 10:51:39 +00:00
Ross Finlayson
a680b7ca3e Some bugs fixed. 2003-11-29 15:32:40 +00:00
Ross Finlayson
7975b0e5f9 Modified for CVS 2003-11-26 09:05:41 +00:00
Ross Finlayson
1f0f3aaf86 tiff2pdf - converts a TIFF image to a PDF document
Written by Ross Finlayson
2003-11-25 16:39:22 +00:00