From 85fec8eb5cd5e7cd304ec0cd1a10a93cd598d1fe Mon Sep 17 00:00:00 2001 Message-Id: <85fec8eb5cd5e7cd304ec0cd1a10a93cd598d1fe.1252753522.git.tim@klingt.org> From: Tim Blechmann Date: Sat, 12 Sep 2009 13:04:28 +0200 Subject: [PATCH] gil: tiff io - compress images with lzw by default Signed-off-by: Tim Blechmann --- boost/gil/extension/io/tiff_io.hpp | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/boost/gil/extension/io/tiff_io.hpp b/boost/gil/extension/io/tiff_io.hpp index 0fe0025..fb8fafc 100644 --- a/boost/gil/extension/io/tiff_io.hpp +++ b/boost/gil/extension/io/tiff_io.hpp @@ -293,6 +293,7 @@ public: tiff_writer(const char *filename) { io_error_if((_tp=TIFFOpen(filename,"w"))==NULL, "tiff_writer: fail to open file"); + TIFFSetField(_tp, TIFFTAG_COMPRESSION, COMPRESSION_LZW); } ~tiff_writer() {TIFFClose(_tp);} template -- 1.6.4.2