andi34 / photobooth

A Photobooth web interface for Linux and Windows.
MIT License
72 stars 39 forks source link

[FEATURE]: automatic chroma-keying #463

Open h4ns123 opened 2 years ago

h4ns123 commented 2 years ago

Is your feature request related to a problem?

No

Description

Would it be possible to optionally use chroma keying on all new images automatically?

Describe the solution you'd like

In the settings a fixed background and keying color can be set, which will be applied to all new images.

Describe alternatives you've considered

none

Additional context

No response

andi34 commented 2 years ago

How about http://localhost/livechroma.php ?

h4ns123 commented 2 years ago

I tried that and the function is pretty cool! But for that I would have to add a control option (rotation button or touch display). Actually, though, I like the simplicity of my one-button design.

So I would like the possibility to use a single event-specific-background. I think it would also be a cool "surprise" for the users, as they would be presented directly with the edited picture and might not know the background before.

andi34 commented 2 years ago

Currently I've no time to implement this feature, but I'd be glad to review changes for it if someone else can implement it.

As a quick and personal solution for you: You can edit the Livechroma.php The background can be set via JavaScript using

setBackgroundImage("path/to/background.jpg");

You can hide the preview part from beginning via private/overrides.css to only have the action buttons visible.