Prevent bandbool creating a single channel sRGB image (#519)

This commit is contained in:
Matt Hirsch
2016-08-13 09:55:15 -04:00
committed by Lovell Fuller
parent ef6e90fb3c
commit 82ec2715f1
2 changed files with 14 additions and 2 deletions

View File

@@ -396,7 +396,8 @@ namespace sharp {
Perform boolean/bitwise operation on image color channels - results in one channel image
*/
VImage Bandbool(VImage image, VipsOperationBoolean const boolean) {
return image.bandbool(boolean);
image = image.bandbool(boolean);
return image.copy(VImage::option()->set("interpretation", VIPS_INTERPRETATION_B_W));
}
/*