Photo Background

Gadgets based on python implementations

image

Introduction

This project is a python implementation of a photo background adding tool. It uses the tkinter library to create a graphical user interface (GUI) and the PIL library to process images. The tool allows the user to add backgrounds to photos in bulk by clicking a button. The resulting image will be saved to the user's computer.

Usage

  1. Select the folder where the images are located and the folder of the desired export location.
  2. Set the width and height of the output image.
  3. Select the watermark path(optional)
  4. Select the background type
  5. Click the submit buttom

Background Type

Type 1: dominant_color

Use the color with the largest percentage of the photo as the background

1 11

Type 2: dominant_color_circle

Display the top 5 dominant colors in the photo on the background(Kmeans)

2 22

Type 3: blurred

Blurring and enlarging a photo as a background

3 33

Type 4: white

Add white background

4 44

Type 5: Parameter

Download

Download Path

Web Version

Web Version