From f24a4a273aab762d8bc2bd52ce96251bcf3901f9 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sat, 18 Apr 2020 11:40:43 +0100 Subject: [PATCH] fix regression in autorot we were writing the wrong image to the output, thanks malomalo see https://github.com/libvips/ruby-vips/issues/226 --- libvips/conversion/autorot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvips/conversion/autorot.c b/libvips/conversion/autorot.c index f77607c2..fb39d5d4 100644 --- a/libvips/conversion/autorot.c +++ b/libvips/conversion/autorot.c @@ -190,7 +190,7 @@ vips_autorot_build( VipsObject *object ) return( -1 ); } - if( vips_image_write( t[0], conversion->out ) ) + if( vips_image_write( t[1], conversion->out ) ) return( -1 ); return( 0 );