Fix sepia

This commit is contained in:
Essem 2022-12-21 22:40:17 -06:00
parent 94f34fa40f
commit a01e2ae77b
No known key found for this signature in database
GPG Key ID: 7D497397CC3A2A8C
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ char *Colors(string type, char *BufferData, size_t BufferLength,
if (color == "grayscale") {
out = in.colourspace(VIPS_INTERPRETATION_B_W);
} else if (color == "sepia") {
out = in.flatten().recomb(sepia);
out = in.extract_band(0, VImage::option()->set("n", 3)).recomb(sepia);
}
void *buf;