missing copy-memory during thumbnail rotation
see https://github.com/libvips/libvips/issues/1704#issuecomment-655691041
This commit is contained in:
parent
c51dc9cd90
commit
97eb2e53bd
@ -841,7 +841,10 @@ vips_thumbnail_build( VipsObject *object )
|
|||||||
thumbnail->orientation != 1 ) {
|
thumbnail->orientation != 1 ) {
|
||||||
g_info( "rotating by EXIF orientation %d",
|
g_info( "rotating by EXIF orientation %d",
|
||||||
thumbnail->orientation );
|
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 );
|
return( -1 );
|
||||||
in = t[14];
|
in = t[14];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user