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
This commit is contained in:
John Cupitt 2020-04-16 14:04:19 +01:00
parent 9ea91810bb
commit 1ef3594be1
1 changed files with 1 additions and 1 deletions

View File

@ -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 );