|
input = last
redmask = input.VToY().Levels(128, 1, 255, 0, 255).LanczosResize(input.width, input.height)
grey = input.Greyscale()
Overlay(input, grey, mask=redmask)
Doesn't that do what you want? (In exaggerated form of course, if you want a more slight desaturation use Tweak() instead of Greyscale() to not make "grey" completely greyscale)
|