Commit Graph

655 Commits

Author SHA1 Message Date
Ross Finlayson
1f0f3aaf86 tiff2pdf - converts a TIFF image to a PDF document
Written by Ross Finlayson
2003-11-25 16:39:22 +00:00
Andrey Kiselev
0fc6802536 sqrtf() replaced with sqrt(). 2003-11-22 08:42:06 +00:00
Andrey Kiselev
318222a1fd Removed #include <getopt.h>. 2003-11-21 21:15:05 +00:00
Andrey Kiselev
aeae0fe964 Unmaintained and platform dependent sgigt utility removed and replaced with
the completely rewritten portable tiffgt tool (depend on OpenGL and GLUT).
Initial revision, there is a lot of things to improve.
2003-11-21 13:28:18 +00:00
Andrey Kiselev
6b087cb603 *** empty log message *** 2003-11-12 19:14:33 +00:00
Andrey Kiselev
397eac63be Properly determine SUN Rasterfiles with the reverse byte order (it is reported
by the magic header field). Problem reported by Andreas Wiesmann.
2003-11-12 15:07:21 +00:00
Andrey Kiselev
07c59b0650 Few improvements in correlation calculation function. 2003-11-12 09:19:53 +00:00
Andrey Kiselev
1c1f312e01 Implemented image size guessing using correlation coefficient calculation
between two neighbour lines.
2003-11-11 15:39:33 +00:00
Andrey Kiselev
21bbbcaa45 #include <strings.h> replaced with #include <string.h> 2003-10-17 21:25:51 +00:00
Andrey Kiselev
a24c2d6e45 *** empty log message *** 2003-10-09 08:41:00 +00:00
Andrey Kiselev
045fa685f1 Fixed possible endless loop as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=404
2003-10-03 13:09:38 +00:00
Andrey Kiselev
798d99bdbd Switched to use TIFFReadRGBAImageOriented() instead of TIFFReadRGBAImage(). 2003-10-03 11:22:29 +00:00
Frank Warmerdam
e3ada41e8b Added -m (maxitems) flag to usage message. 2003-09-02 13:28:09 +00:00
Andrey Kiselev
6270b7262c int declaration replaced with the uint32 to support large images as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=382
2003-08-21 10:00:06 +00:00
Andrey Kiselev
c6b36db6ee Added missing #include <strings.h>. 2003-08-12 07:51:03 +00:00
Andrey Kiselev
1cbcc49d2f Fixed PS comment emitted when FlateDecode is being used. Reported by Tom
Kacvinsky.
2003-08-08 19:46:20 +00:00
Frank Warmerdam
8c657db1a6 Avoid warning casting signed value to unsigned variable.
Patch supplied by J.A. Strother.
2003-07-26 03:50:08 +00:00
Frank Warmerdam
03f0fc1b10 applied patch for to support more pages in tiffsplit 2003-07-26 03:46:08 +00:00
Andrey Kiselev
19bfe77143 Added option `-p' to explicitly select color space of input image data. Closes
http://bugzilla.remotesensing.org/show_bug.cgi?id=364
2003-07-10 20:04:42 +00:00
Andrey Kiselev
97ed644e72 Memory leak fixed as reported by Robert S. Kissel. 2003-07-03 12:27:17 +00:00
Andrey Kiselev
adc20ad9b0 Fixed problem with unused data comparing as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=349
`-z' option now can be used to set the number of reported different bytes.
2003-06-18 09:57:55 +00:00
Andrey Kiselev
2f4d3521b4 Added possibility to specify value -1 to -r option to get the entire image
as one strip. See http://bugzilla.remotesensing.org/show_bug.cgi?id=343
for details.
2003-06-10 06:15:36 +00:00
Andrey Kiselev
b446eb0782 Set the correct RowsPerStrip and PageNumber values as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=343
2003-06-04 10:36:54 +00:00
Andrey Kiselev
320ac7822a Page numbering fixed, as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=341
2003-05-25 05:56:26 +00:00
Andrey Kiselev
147baafe89 Removing previous patch. 2003-05-24 06:25:10 +00:00
Andrey Kiselev
f00e62d510 Number pages starting with zero as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=341
2003-05-24 06:16:09 +00:00
Andrey Kiselev
0efbf194c5 raw2tiff sdded. 2003-05-24 06:05:13 +00:00
Andrey Kiselev
af72982dab Fixed bug in Ascii85EncodeBlock() function: array index was out of range. 2003-05-07 08:12:30 +00:00
Andrey Kiselev
cdfa074838 *** empty log message *** 2003-05-05 19:13:42 +00:00
Andrey Kiselev
c34905ee73 Fixed problem with bit fill order tag setting: was not copied from source
image.
2003-05-05 19:06:52 +00:00
Andrey Kiselev
ac3f89b460 PPM header parser improved: now able to skip comments. 2003-05-05 10:40:04 +00:00
Andrey Kiselev
d7adbd23df Add ability to generate PS Level 3. It basically allows one to use the
/flateDecode filter for ZIP compressed TIFF images. Patch supplied by
 Tom Kacvinsky. Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=328

Force deadzone printing when EPS output specified as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=325
2003-04-29 09:52:16 +00:00
Andrey Kiselev
8415e87d3e Some more fixes to bug entry
http://bugzilla.remotesensing.org/show_bug.cgi?id=275
2003-04-21 19:13:59 +00:00
Andrey Kiselev
cbc8214586 Fixed problem with colorspace conversion for JPEG
encoded images. See bug entries
http://bugzilla.remotesensing.org/show_bug.cgi?id=275 and
http://bugzilla.remotesensing.org/show_bug.cgi?id=23
2003-04-16 13:21:09 +00:00
Andrey Kiselev
c26da71049 Added library version reporting to all tools. 2003-03-12 14:05:05 +00:00
Andrey Kiselev
1f20935271 New switch (-X) to set width of raw input page. Patch supplied by
Julien Gaulmin. See http://bugzilla.remotesensing.org/show_bug.cgi?id=293
for details.
2003-02-27 15:04:46 +00:00
Andrey Kiselev
210eb932ec Fixed problem with too many arguments. 2003-02-06 22:05:47 +00:00
Andrey Kiselev
fe6e11556e Memory leak fixed. 2003-02-04 08:51:38 +00:00
Andrey Kiselev
be7810fc2c Applied patch from Julien Gaulmin (thanks, Julien!). More switches for
fax2tiff tool for better control of input and output. Details at
http://bugzilla.remotesensing.org/show_bug.cgi?id=27
2003-02-03 16:54:22 +00:00
Andrey Kiselev
8ae9d8798a Page size was determined in wrong way as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=239
2002-12-19 23:06:18 +00:00
Frank Warmerdam
743a29c475 The change below fixes a problem where "tiff2ps -1e" did not make
the scanline buffer long enough when writing rgb triplets.
The scanline needs to be 3 X the number of dots or else it will
contain an incomplete triplet and programs that try to separate
the eps by redefining the colorimage operator will get messed up.

William
http://williambader.com
2002-10-15 02:39:09 +00:00
Andrey Kiselev
5ed96d05fb Fixed help formatting. 2002-10-10 14:19:26 +00:00
Andrey Kiselev
e985fcbddb *** empty log message *** 2002-10-07 13:15:29 +00:00
Andrey Kiselev
bd77199765 tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken (thanks,
Sebastian!). New switches:
-b # for a bottom margin of # inches
-c   center image
-l # for a left margin of # inches
-r   rotate the image by 180 degrees
New features merged with code for shrinking/overlapping. Previously added -c
and -n switches (for overriding PS units) renamed in -x and -y respectively.

http://bugzilla.remotesensing.org/show_bug.cgi?id=200
2002-10-07 12:49:32 +00:00
Frank Warmerdam
5ae8f23ee7 bug80 - remove BeginData/EndData from PostScript output 2002-09-08 17:49:22 +00:00
Andrey Kiselev
ff411c24b5 Fixes in orientation support. 2002-08-18 17:29:17 +00:00
Andrey Kiselev
10450bf936 Added -i commandline switch to handle different types of data interleaving 2002-08-12 15:32:37 +00:00
Andrey Kiselev
9d0b2d19e0 New tool: raw2tiff --- raw images to TIFF converter. No manual page yet. 2002-08-10 15:25:54 +00:00
Andrey Kiselev
a94d5b4e3b Help option fixed 2002-06-27 13:07:46 +00:00
Andrey Kiselev
c2d7ef0d2c Added support for deflate compression. 2002-06-27 07:41:33 +00:00
Andrey Kiselev
f2558c8426 Added workaround for some software that may crash when last strip
of image contains fewer number of scanlines than specified by the
`/Height' variable. See
http://bugzilla.remotesensing.org/show_bug.cgi?id=164 for explanation.
2002-06-22 10:32:56 +00:00
Andrey Kiselev
68db217599 New functionality for tiff2ps utility: splitting long images in several pages.
See http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation.
Patch granted by John Williams <williams@morinda.com>.
2002-06-21 10:24:40 +00:00
Andrey Kiselev
b7a6cf276a *** empty log message *** 2002-06-02 11:41:23 +00:00
Andrey Kiselev
ff51d7a6aa New commandline switches to override resolution units obtained from the input
file. Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=131
2002-05-10 10:45:43 +00:00
Andrey Kiselev
2484287354 Updated to reflect latest changes in libtiff. Closes
http://bugzilla.remotesensing.org/show_bug.cgi?id=125
2002-04-22 07:32:24 +00:00
Andrey Kiselev
0aa0a6dbce Divide by zero fixed. Closes
http://bugzilla.remotesensing.org/show_bug.cgi?id=88
2002-04-09 20:48:53 +00:00
Andrey Kiselev
900dffdcbe Added support for 'Orientation' tag in tiffcp utility (at cpStripToTile
routine).
2002-03-31 22:57:19 +00:00
Andrey Kiselev
6236465593 Shared library will not be stripped when installing, utility binaries will do.
Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=93
2002-03-08 07:21:53 +00:00
Frank Warmerdam
b049944746 Added TIFFTAG_JPEGTABLES entry in tag table. 2002-01-16 18:04:57 +00:00
Frank Warmerdam
ad9dd219cd Fix bug in error output. 2002-01-16 17:50:05 +00:00
Frank Warmerdam
0bdad6cb3c Fixed several warnings. 2002-01-16 17:48:16 +00:00
Frank Warmerdam
4b1d7e4c29 added TIFFRewriteDirectory 2001-09-26 17:42:18 +00:00
Frank Warmerdam
4f152a1867 New 2001-09-25 02:27:51 +00:00
Frank Warmerdam
2c26534c4b *** empty log message *** 2001-09-25 02:26:29 +00:00
Frank Warmerdam
b6d12d041c obsolete 2001-09-24 19:55:32 +00:00
Frank Warmerdam
177169bf93 fixed last change 2001-09-08 17:28:08 +00:00
Frank Warmerdam
71715f2e02 add OJPEG support to tiff2ps 2001-09-08 17:27:38 +00:00
Frank Warmerdam
7f12712234 fixed getopt so that -b works again 2001-08-11 03:13:59 +00:00
Frank Warmerdam
87f580c152 added DESTDIR support as per bug 60 2001-07-17 13:13:37 +00:00
Frank Warmerdam
de3497b2b4 Fixed multi samples per pixel support for ContigCompare.
See http://bugzilla.remotesensing.org/show_bug.cgi?id=53
2001-06-29 02:48:00 +00:00
Frank Warmerdam
f84737906e added -n flag 2001-06-13 15:24:37 +00:00
Frank Warmerdam
d6e4b16b19 Changed define output compression to PACKBITS since LZW isn't generally
available.
2001-05-13 14:49:27 +00:00
Frank Warmerdam
9191ab82fa fixed up SHELL_SH/SHELL issues 2001-04-06 03:02:33 +00:00
Frank Warmerdam
21724616f5 Wide variety of HP/UX configuration changes 2001-04-03 05:17:02 +00:00
Frank Warmerdam
fb16c8ba87 added support for OPTIMIZER from config.site 2001-03-30 01:55:32 +00:00
Frank Warmerdam
4f4c99abfc From Helge (libtiff@oldach.net)
Here's a fix for fax2ps that corrects behaviour for non-Letter paper
sizes. It fixes two problems:

Without scaling (-S) the fax is now centered on the page size specified
with -H and/or -W. Before, fax2ps was using an obscure and practially
useless algorithm to allocate the image relative to Letter sized paper
which sometime sled to useless whitespace on the paper, while at the
same time cutting of the faxes printable area at the opposite border.

Second, scaling now preserves aspect ratio, which makes unusual faxes
(in particular short ones) print properly.
2001-03-29 01:45:43 +00:00
Frank Warmerdam
7a1ad5e9d9 Broad changes to tiff2ps by Bruce A. Mallett.
Fixed PS_Lvl2page() code which outputs non-ASCII85 raw
    data.  Moved test for when to output a line break to
    *after* the output of a character.  This just serves
    to fix an eye-nuisance where the first line of raw
    data was one character shorter than subsequent lines.

    Added an experimental ASCII85 encoder which can be used
    only when there is a single buffer of bytes to be encoded.
    This version is much faster at encoding a straight-line
    buffer of data because it can avoid alot of the loop
    overhead of the byte-by-bye version.  To use this version
    you need to define EXP_ASCII85ENCODER (experimental ...).

    Added bug fix given by Michael Schmidt to PS_Lvl2page()
    in which an end-of-data marker ('>') was not being output
    when producing non-ASCII85 encoded PostScript Level 2
    data.

    Fixed PS_Lvl2colorspace() so that it no longer assumes that
    a TIFF having more than 2 planes is a CMYK.  This routine
    no longer looks at the samples per pixel but instead looks
    at the "photometric" value.  This change allows support of
    CMYK TIFFs.

    Modified the PostScript L2 imaging loop so as to test if
    the input stream is still open before attempting to do a
    flushfile on it.  This was done because some RIPs close
    the stream after doing the image operation.

    Got rid of the realloc() being done inside a loop in the
    PSRawDataBW() routine.  The code now walks through the
    byte-size array outside the loop to determine the largest
    size memory block that will be needed.

    Added "-m" switch to ask tiff2ps to, where possible, use the
    "imagemask" operator instead of the "image" operator.

    Added the "-i #" switch to allow interpolation to be disabled.

    Unrolled a loop or two to improve performance.
2001-03-29 01:34:33 +00:00
Frank Warmerdam
7b2e915893 New 2001-03-02 04:58:53 +00:00
Frank Warmerdam
f1ca6ff832 added tiffset 2001-03-02 04:58:46 +00:00
Frank Warmerdam
3ba769b282 Brent Roman: added bias, and comma subfile support, removed -z 2001-02-19 15:18:19 +00:00
Mike Welles
4e58796e7b Just committing RELEASE-DATE 2001-01-23 21:41:21 +00:00
Mike Welles
a7f6e194cf * modified Makefile.in, configure, and dist/newversion, so that.
the old code updates things based on the info in VERSION. I've
	  kept this, but added a second token in VERSION, "beta". configure
	  will now parse VERSION into $VERSION and $RELEASE.  Whatever the
	  second token is will be appened to the "release" target tar and
	  zip afiles, and will be used by dist/newversion to
	  create dist/tiff.version.
2000-12-22 22:33:41 +00:00
Frank Warmerdam
e1f05487e9 fixed output strip size to account for vertical roundup to sample factor 2000-10-19 13:23:49 +00:00
Frank Warmerdam
de9b66753d tiff2bw accuracy patch from Stanislav Brabec 2000-10-12 14:16:22 +00:00
Frank Warmerdam
82cc2afe92 copy TIFFTAG_SAMPLEFORMAT field 2000-04-18 22:47:10 +00:00
Frank Warmerdam
58102f84bf patch for SGI install command 2000-04-18 20:29:01 +00:00
Mike Welles
f076e7232f Added patch to remove compiler warnings in tif_lzw.c 2000-04-04 14:43:35 +00:00
Mike Welles
9770233888 Updated docs, changelog -- modified Makefile.in to make release target in parent directory 2000-03-29 04:35:28 +00:00
Frank Warmerdam
6e8bb63779 fixed swapping of width and height in BoundingBox 2000-03-28 18:22:59 +00:00
Mike Welles
c21b8b9753 ke Welles <mike@onshore.com>
* fax2ps:  Modified printruns to take uint32 instead of uint16.
	Patch courtesy of Bernt Herd <herd@herdsoft.com>

	* html:  Createdd v3.5.5.htmlCVS: Modified Files:
2000-03-27 17:05:55 +00:00
Mike Welles
d20c60a208 2000-03-20 Mike Welles <mike@onshore.com>
* configure: added test for libc6 for linux targets.  Bug reported by
          Stanislav Brabec <utx@k332.feld.cvut.cz>

	* Added 3.5 docs to html/Makefile.in.  Thanks to  Stanislav Brabec <utx@k332.feld.cvut.cz>

	* configure: fixed bugs in sed scripts (applied sed script s:/@:s;@:;s:/s;;:;: to configure).
	  fix submitted to Stanislav Brabec <utx@k332.feld.cvut.cz>

	* tools/iptcutil was not in files list, and wasn't being added to tar archive.  Updated Makefile.in.
2000-03-20 18:20:42 +00:00
Frank Warmerdam
c41985f6b1 Fixed stopondiff testing so that -l works.
Patch from: Joseph Orost <joe@sanskrit.lz.att.com>
2000-02-16 02:53:49 +00:00
Frank Warmerdam
d8dfb6780a avoid warnings on IRIX 2000-01-28 21:18:16 +00:00
Frank Warmerdam
ba2c4a8d2a Added clean target. 2000-01-05 03:13:58 +00:00
Mike Welles
c38ac53b1d Created lzw compression kit, as a new module (libtiff-lzw-compression-kit).
Altered descriptions in tools to reflect "by default" lzw not supported

Updated index.html to note lzw compression kit.
1999-12-27 17:35:01 +00:00
Mike Welles
da558ffbe4 * Aadded Pixar tag support.
Contributed by Phil Beffery <phil@pixar.com>
	* Made one more change to tif_dir.c for removal of LZW compression.
	  Also added notice when LZW compression invoked.
	* Changed default compression in tools to TIFF_PACKBITS, and changed
	  usage description in tools to reflect removal of LZW compression
1999-12-21 17:03:03 +00:00
Mike Welles
1c0961757f * Fixed bug that caused LZW (non) compression to segfault. Added
warning about LZW compression removed being removed, and why.
1999-12-20 23:46:11 +00:00
Frank Warmerdam
05f6519dba Made PACKBITS the default compression instead of LZW. 1999-12-04 20:48:27 +00:00
Mike Welles
8883ce4e1c release fixing.. 1999-09-28 17:22:20 +00:00
Frank Warmerdam
46d57b4b44 New 1999-08-17 03:07:50 +00:00
Frank Warmerdam
0c05326424 Modified to compile on Windows. 1999-08-17 03:07:43 +00:00
Frank Warmerdam
8c87537082 tiffcp.c 1999-08-16 18:27:51 +00:00
Frank Warmerdam
ef0bad9eae added tiff2rgba 1999-08-16 18:26:37 +00:00
Frank Warmerdam
babc83e785 New 1999-08-16 17:46:08 +00:00
Mike Welles
0ef31e1f62 Initial revision 1999-07-27 21:50:26 +00:00