From 1ef3594be122da22454b9e68eb8704b7d921df18 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Thu, 16 Apr 2020 14:04:19 +0100 Subject: [PATCH] autorot was not removing the orientation tag We were writing the wrong image to the output. 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 );