Skip to content Skip to sidebar Skip to footer

Image Composite Result Incorrect Using Python Wand

I have 3 images need to composite together, but the result dose not same as original result from AfterEffect compositing. In AfterEffect , i need to use 32 bit image depth to do so

Solution 1:

I would suspect the issue is related to the order of operations. Try the following...

from wand.image import Image

with Image(filename='D:\\0225_red.jpg') as img:
    img.options['quantum:format'] = 'floating-point'
    img.options['compose:clamp'] = 'off'
    with Image(filename='D:\\0225_blue.jpg') as blue:
        img.composite_channel('all_channels', blue, 'plus')
    with Image(filename='D:\\0225_pink.jpg') as pink:
        img.composite_channel('all_channels', pink, 'minus_src')
    img.save(filename='D:\\0225_test.tif')

Post a Comment for "Image Composite Result Incorrect Using Python Wand"