diff --git a/libvips/deprecated/im_mask2vips.c b/libvips/deprecated/im_mask2vips.c index 1cf0142d..918402fe 100644 --- a/libvips/deprecated/im_mask2vips.c +++ b/libvips/deprecated/im_mask2vips.c @@ -65,7 +65,8 @@ im_mask2vips( DOUBLEMASK *in, IMAGE *out ) /* Check the mask. */ - if( !in || !in->coeff ) { + if( !in || + !in->coeff ) { im_error( "im_mask2vips", "%s", _( "bad input mask" ) ); return( -1 ); } @@ -98,6 +99,9 @@ im_mask2vips( DOUBLEMASK *in, IMAGE *out ) return( -1 ); } + vips_image_set_double( out, "scale", in->scale ); + vips_image_set_double( out, "offset", in->offset ); + return( 0 ); }