I have a problem. The following code does work and it combines the two images. But the background-image in the final composing is completely black.
Any guesses, what's the problem here?
from wand.image import Image
with Image(filename=bgimage) as back:
with Image(filename=qrcode) as front:
with Image(width=back.width, height=back.height) as new_image:
new_image.composite(front, left=1000, top=900)
new_image.save(filename=qr_output)
Try removing the
new_image
section, and simplify everything.If your attempting to reuse
back
instance, then leveragewand.image.Image.clone