From 35e8e63829c9add42a98a49714d4fc94e179986b Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Tue, 1 Oct 2013 12:16:24 +0100 Subject: [PATCH] small tiff write fix from recent reworking --- libvips/foreign/vips2tiff.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libvips/foreign/vips2tiff.c b/libvips/foreign/vips2tiff.c index dec5da22..0b0f2e80 100644 --- a/libvips/foreign/vips2tiff.c +++ b/libvips/foreign/vips2tiff.c @@ -1169,7 +1169,8 @@ write_tif_stripwise( TiffWrite *tw ) */ if( tw->im->Coding != VIPS_CODING_LABQ && !tw->onebit && - TIFFTileSize( tw->tif ) != VIPS_IMAGE_SIZEOF_LINE( tw->im ) ) { + TIFFScanlineSize( tw->tif ) != + VIPS_IMAGE_SIZEOF_LINE( tw->im ) ) { vips_error( "vips2tiff", "%s", _( "unsupported image format" ) ); return( -1 );