From ef0bad9eaebe768fc947967f745162bf42aea8a2 Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Mon, 16 Aug 1999 18:26:37 +0000 Subject: [PATCH] added tiff2rgba --- tools/Makefile.in | 10 +++++++++- tools/Makefile.lcc | 7 ++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/tools/Makefile.in b/tools/Makefile.in index dcf3865a..b5637b78 100644 --- a/tools/Makefile.in +++ b/tools/Makefile.in @@ -1,4 +1,4 @@ -# $Header: /cvs/maptools/cvsroot/libtiff/tools/Makefile.in,v 1.1 1999-07-27 21:50:28 mike Exp $ +# $Header: /cvs/maptools/cvsroot/libtiff/tools/Makefile.in,v 1.2 1999-08-16 18:26:37 warmerda Exp $ # # @WARNING@ # @@ -65,6 +65,7 @@ OBJS= \ ras2tiff.o \ thumbnail.o \ tiff2bw.o \ + tiff2rgba.o \ tiff2ps.o \ tiffcmp.o \ tiffcp.o \ @@ -84,6 +85,7 @@ TARGETS =\ thumbnail \ ras2tiff \ tiff2bw \ + tiff2rgba \ tiff2ps \ tiffcmp \ tiffcp \ @@ -172,6 +174,12 @@ tiff2bw: tiff2bw.o ${TIFFLIB} tiff2bw.o: ${SRCDIR}/tiff2bw.c ${CC} -c ${CFLAGS} ${SRCDIR}/tiff2bw.c +# convert anything to RGBA. +tiff2rgba: tiff2rgba.o ${TIFFLIB} + ${CC} -o tiff2rgba ${CFLAGS} tiff2rgba.o ${LIBS} +tiff2rgba.o: ${SRCDIR}/tiff2rgba.c + ${CC} -c ${CFLAGS} ${SRCDIR}/tiff2rgba.c + # convert B&W image to bilevel w/ FS dithering tiffdither: tiffdither.o ${TIFFLIB} ${CC} -o tiffdither ${CFLAGS} tiffdither.o ${LIBS} diff --git a/tools/Makefile.lcc b/tools/Makefile.lcc index 5238c33b..6f715368 100644 --- a/tools/Makefile.lcc +++ b/tools/Makefile.lcc @@ -1,4 +1,4 @@ -# $Header: /cvs/maptools/cvsroot/libtiff/tools/Makefile.lcc,v 1.1 1999-07-27 21:50:28 mike Exp $ +# $Header: /cvs/maptools/cvsroot/libtiff/tools/Makefile.lcc,v 1.2 1999-08-16 18:26:37 warmerda Exp $ # # TIFF Library Tools # @@ -52,6 +52,7 @@ OBJS=\ ppm2tiff.o \ rgb2ycbcr.o \ tiff2bw.o \ + tiff2rgba.o \ tiff2ps.o \ tiffcmp.o \ tiffcp.o \ @@ -70,6 +71,7 @@ ALL=\ ppm2tiff.ttp \ rgb2ycbcr.ttp \ tiff2bw.ttp \ + tiff2rgba.ttp \ tiff2ps.ttp \ tiffcmp.ttp \ tiffcp.ttp \ @@ -101,6 +103,9 @@ tiff2ps.ttp: tiff2ps.c ${LIBTIFF} # convert RGB image to B&W tiff2bw.ttp: tiff2bw.c ${GETOPT} ${LIBTIFF} ${CC} -o tiff2bw.ttp ${CFLAGS} tiff2bw.c ${GETOPT} ${LIBS} +# convert anything to RGBA +tiff2rgba.ttp: tiff2rgba.c ${GETOPT} ${LIBTIFF} + ${CC} -o tiff2rgba.ttp ${CFLAGS} tiff2rgba.c ${GETOPT} ${LIBS} # convert B&W image to bilevel w/ FS dithering tiffdither.ttp: tiffdither.c ${LIBTIFF} ${CC} -o tiffdither.ttp ${CFLAGS} tiffdither.c ${LIBS}