This repo refers to Teams for Linux which provides an non-official Electron wrapped Microsoft Teams client for use on Linux.
With this script you can automatically create background images that shall be served by a local webserver (e.g. Apache2) and can then be used for video-conferences background effects.
Install a webserver of your choice and enable it to serve images.
Example on Ubuntu 22.04
sudo -i
apt install apache2
a2enmod headers
cat << EOF | sed -i "$(( $(grep -n 'DocumentRoot /var/www/html' /etc/apache2/sites-enabled/000-default.conf | cut -d: -f1) + 1 ))r /dev/stdin" /etc/apache2/sites-enabled/000-default.conf
<Directory /var/www/html/>
Header set Access-Control-Allow-Origin "*"
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
EOF
systemctl restart apache2.service
Make sure all the images are of JPEG format and named *.jpg.
Save all images to: /var/www/html/source/
run the script
./create_backgrounds.sh
~/.config/teams-for-linux/config.json
{
"optInTeamsV2": true,
"url": "https://teams.microsoft.com/v2/",
"isCustomBackgroundEnabled": true,
"customBGServiceConfigFetchInterval": 120
}
to pick up the newly available images