Ticket #3440: 0001-gil-tiff-io-compress-images-with-lzw-by-default.patch

File 0001-gil-tiff-io-compress-images-with-lzw-by-default.patch, 979 bytes (added by tim@…, 13 years ago)
  • boost/gil/extension/io/tiff_io.hpp

    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:  
    293293    tiff_writer(const char *filename) {
    294294        io_error_if((_tp=TIFFOpen(filename,"w"))==NULL,
    295295                    "tiff_writer: fail to open file");
     296        TIFFSetField(_tp, TIFFTAG_COMPRESSION, COMPRESSION_LZW);
    296297    }
    297298    ~tiff_writer() {TIFFClose(_tp);}
    298299    template <typename View>