From 85fec8eb5cd5e7cd304ec0cd1a10a93cd598d1fe Mon Sep 17 00:00:00 2001
Message-Id: <85fec8eb5cd5e7cd304ec0cd1a10a93cd598d1fe.1252753522.git.tim@klingt.org>
From: Tim Blechmann <tim@klingt.org>
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 <tim@klingt.org>
---
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
|
b
|
public:
|
293 | 293 | tiff_writer(const char *filename) { |
294 | 294 | io_error_if((_tp=TIFFOpen(filename,"w"))==NULL, |
295 | 295 | "tiff_writer: fail to open file"); |
| 296 | TIFFSetField(_tp, TIFFTAG_COMPRESSION, COMPRESSION_LZW); |
296 | 297 | } |
297 | 298 | ~tiff_writer() {TIFFClose(_tp);} |
298 | 299 | template <typename View> |