From 06a383f8a19647bcaa608889b66620fcb129a8ff Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sun, 4 Dec 2011 12:24:57 +0000 Subject: [PATCH] small fixes --- libvips/foreign/vips2tiff.c | 2 +- libvips/format/im_vips2tiff.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libvips/foreign/vips2tiff.c b/libvips/foreign/vips2tiff.c index 60040658..6addddd3 100644 --- a/libvips/foreign/vips2tiff.c +++ b/libvips/foreign/vips2tiff.c @@ -1239,7 +1239,7 @@ make_tiff_write( IMAGE *im, const char *filename, tw->predictor = predictor; tw->tile = tile; tw->tilew = tile_width; - tw->tileh = tile_width; + tw->tileh = tile_height; tw->pyramid = pyramid; tw->onebit = squash; tw->icc_profile = profile; diff --git a/libvips/format/im_vips2tiff.c b/libvips/format/im_vips2tiff.c index 46671bce..7ffb1e36 100644 --- a/libvips/format/im_vips2tiff.c +++ b/libvips/format/im_vips2tiff.c @@ -224,7 +224,7 @@ im_vips2tiff( IMAGE *in, const char *filename ) return( -1 ); } - if( vips_tiffsave( in, filename, + if( vips_tiffsave( in, name, "compression", compression, "Q", Q, "predictor", predictor,