This repository contains Python scripts for image manipulation and background removal, designed to simplify the process of preparing images for various applications.
The bg_remove.py
script is focused on background removal from images. Key features include:
- Utilizes the remove.bg API for automatic background removal.
- Handles rate limits and VIP queue for processing large image volumes.
- Resizes images to optimal dimensions to improve processing speed.
- Converts images to a transparent background format.
The upscale.py
script deals with upscaling and cropping images. It offers the following functionalities:
- Upscales images by a factor of 2 while preserving transparency.
- Crops images to remove borders and empty spaces.
- Renames and organizes images into subdirectories.
The webptopng.py
script is focused on converting WebP images to PNG format. It performs the following tasks:
- Converts WebP images to PNG format while retaining transparency.
- Organizes converted images into a dedicated subdirectory.
To use these scripts:
- Make sure you have Python installed.
- Install the required dependencies mentioned in the scripts if necessary.
- Set API keys and customize script parameters as needed.
- Run the desired script from the repository.