mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Prevent bandbool creating a single channel sRGB image (#519)
This commit is contained in:
committed by
Lovell Fuller
parent
ef6e90fb3c
commit
82ec2715f1
@@ -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));
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user