summaryrefslogtreecommitdiff
path: root/tools/tiffcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/tiffcp.c')
-rw-r--r--tools/tiffcp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/tiffcp.c b/tools/tiffcp.c
index c87cc46c..ef155698 100644
--- a/tools/tiffcp.c
+++ b/tools/tiffcp.c
@@ -1,4 +1,4 @@
-/* $Header: /usr/people/sam/tiff/tools/RCS/tiffcp.c,v 1.48 1996/01/10 19:35:36 sam Exp $ */
+/* $Header: /usr/people/sam/tiff/tools/RCS/tiffcp.c,v 1.51 1996/12/13 05:22:37 sam Exp $ */
/*
* Copyright (c) 1988-1996 Sam Leffler
@@ -399,6 +399,7 @@ static struct cpTag {
{ TIFFTAG_HALFTONEHINTS, 2, TIFF_SHORT },
{ TIFFTAG_INKSET, 1, TIFF_SHORT },
{ TIFFTAG_INKNAMES, 1, TIFF_ASCII },
+ { TIFFTAG_NUMBEROFINKS, 1, TIFF_SHORT },
{ TIFFTAG_DOTRANGE, 2, TIFF_SHORT },
{ TIFFTAG_TARGETPRINTER, 1, TIFF_ASCII },
{ TIFFTAG_SAMPLEFORMAT, 1, TIFF_SHORT },
@@ -512,6 +513,11 @@ tiffcp(TIFF* in, TIFF* out)
CopyTag(TIFFTAG_FAXSUBADDRESS, 1, TIFF_ASCII);
break;
}
+ { uint32 len32;
+ void** data;
+ if (TIFFGetField(in, TIFFTAG_ICCPROFILE, &len32, &data))
+ TIFFSetField(out, TIFFTAG_ICCPROFILE, len32, data);
+ }
for (p = tags; p < &tags[NTAGS]; p++)
CopyTag(p->tag, p->count, p->type);