Commit Graph

25 Commits

Author SHA1 Message Date
Thomas Bernard
4b64bf1cee
tiffset: pass size for TIFFTAG_INKNAMES
Uses TIFFFieldPassCount() to know which arguments need to be
passed to TiffSetField()

fixes #18
see http://bugzilla.maptools.org/show_bug.cgi?id=2202
2020-04-05 19:33:02 +02:00
Thomas Bernard
b738aaa834
tiffset: check memory allocation
fixes #157 / http://bugzilla.maptools.org/show_bug.cgi?id=2850
2020-03-23 17:17:17 +01:00
Bob Friesenhahn
58b16f47a8 Add nmake build support for manually configuring the 'port' files to be
built based on MSVC features.
Include tif_config.h in tools/tiffset.c.
2020-01-25 14:11:05 -06:00
Roger Leigh
43586d4105 tiffset: Add support for LONG8, SLONG8 and IFD8 field types 2018-03-23 22:11:17 +00:00
Bob Friesenhahn
79bb4d034f 'tif_config.h' or 'tiffio.h' must be included before any system header. 2017-12-02 14:45:03 -06:00
Even Rouault
f0a54a4fa0 Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
Even Rouault
76a2b9d619 * tools/tiffset.c: fix setting a single value for the ExtraSamples tag
(and other tags with variable number of values).
So 'tiffset -s ExtraSamples 1 X'. This only worked
when setting 2 or more values, but not just one.
2017-10-01 17:38:12 +00:00
Bob Friesenhahn
74295b7487 * tools/tiffset.c: tiffset now supports a -u option to unset a
tag.  Patch by Zach Baker. See
http://bugzilla.maptools.org/show_bug.cgi?id=2419
2012-12-04 03:02:37 +00:00
Tom Lane
84595b4fd7 Add accessor functions for the opaque type TIFFField. 2012-07-29 15:45:29 +00:00
Frank Warmerdam
a9a1d1c65f Add -d and -sd switches to tiffset to allow operation on a particular
directory instead of just the first (jef)
2011-03-26 12:07:20 +00:00
Andrey Kiselev
897e7e9491 Properly handle TIFFTAG_PAGENUMBER, TIFFTAG_HALFTONEHINTS,
TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE which should be set by value.
2010-07-06 14:30:38 +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
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
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
9ece518261 Avoid warnings. 2005-09-13 14:09:10 +00:00
Frank Warmerdam
d1e479c9a4 Updated header. 2005-02-24 14:47:11 +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
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
Andrey Kiselev
e921b6d3a8 Check the malloc return value (Dmitry V. Levin). 2004-10-26 18:22:47 +00:00
Andrey Kiselev
670cdcb608 Forgotten debug output removed. 2004-06-07 09:05:09 +00:00
Andrey Kiselev
7d2f892d06 tiffset now can set any libtiff supported tags. Tags can be supplied by the
mnemonic name or number.
2004-06-05 09:05:26 +00:00
Frank Warmerdam
b3587254f7 Increase -sf buffer size. 2004-05-03 16:39:11 +00:00
Frank Warmerdam
ad9dd219cd Fix bug in error output. 2002-01-16 17:50:05 +00:00
Frank Warmerdam
4b1d7e4c29 added TIFFRewriteDirectory 2001-09-26 17:42:18 +00:00
Frank Warmerdam
7b2e915893 New 2001-03-02 04:58:53 +00:00