[virtual-background] Can I reverse the image and merge it with the video track?

jitsi creates the final result by mixing “video track + image file” to create a virtual background.
By the way, is it possible to mix image files after inverting them?

current)

video →
image →


What I want)

video →
image ←

Not sure if this is what you’re asking, but you can flip the video of the local participant to match the direction you prefer to see.

1 Like

i found a way

  1. When I uploaded the image, I uploaded it in reverse.

context.translate(canvas.width, 0);
context.scale(-1, 1);

  1. Only the preview button was modified to be shown in reverse through css.
style={{
   backgroundImage: `url(${imgSrc})`,
   transform: "scale(-1, 1)", 
}}

Isn’t the same to translate the image by using an image editor before uploading?

1 Like