fix background for affine on alpha images
need to convert to ink for premultiplied space
This commit is contained in:
parent
e179e3b11f
commit
2815647ce3
@ -497,14 +497,6 @@ vips_affine_build( VipsObject *object )
|
|||||||
return( -1 );
|
return( -1 );
|
||||||
in = t[0];
|
in = t[0];
|
||||||
|
|
||||||
/* Convert the background to the image's format.
|
|
||||||
*/
|
|
||||||
if( !(affine->ink = vips__vector_to_ink( class->nickname,
|
|
||||||
resample->out,
|
|
||||||
VIPS_AREA( affine->background )->data, NULL,
|
|
||||||
VIPS_AREA( affine->background )->n )) )
|
|
||||||
return( -1 );
|
|
||||||
|
|
||||||
/* Add new pixels around the input so we can interpolate at the edges.
|
/* Add new pixels around the input so we can interpolate at the edges.
|
||||||
*
|
*
|
||||||
* We add the interpolate stencil, plus one extra pixel on all the
|
* We add the interpolate stencil, plus one extra pixel on all the
|
||||||
@ -544,6 +536,14 @@ vips_affine_build( VipsObject *object )
|
|||||||
in = t[3];
|
in = t[3];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Convert the background to the image's format.
|
||||||
|
*/
|
||||||
|
if( !(affine->ink = vips__vector_to_ink( class->nickname,
|
||||||
|
in,
|
||||||
|
VIPS_AREA( affine->background )->data, NULL,
|
||||||
|
VIPS_AREA( affine->background )->n )) )
|
||||||
|
return( -1 );
|
||||||
|
|
||||||
/* Normally SMALLTILE ... except if this is strictly a size
|
/* Normally SMALLTILE ... except if this is strictly a size
|
||||||
* up/down affine.
|
* up/down affine.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user