missing copy-memory during thumbnail rotation

see https://github.com/libvips/libvips/issues/1704#issuecomment-655691041
This commit is contained in:
John Cupitt 2020-07-09 07:08:49 +01:00
parent c51dc9cd90
commit 97eb2e53bd
1 changed files with 4 additions and 1 deletions

View File

@ -841,7 +841,10 @@ vips_thumbnail_build( VipsObject *object )
thumbnail->orientation != 1 ) {
g_info( "rotating by EXIF orientation %d",
thumbnail->orientation );
if( vips_autorot( in, &t[14], NULL ) )
/* Need to copy to memory, we have to stay seq.
*/
if( !(t[9] = vips_image_copy_memory( in )) ||
vips_autorot( t[9], &t[14], NULL ) )
return( -1 );
in = t[14];
}