explaingit

tnguyenbk/resize-image-webp

15PythonAudience · designerComplexity · 2/5ActiveLicenseSetup · moderate

TLDR

Python desktop app for batch image resizing, format conversion to WebP/JPEG/PNG, logo stamping, and text watermarks with a three-column GUI and live preview.

Mindmap

mindmap
  root((resize-image-webp))
    Inputs
      JPG PNG WebP BMP
      Logo PNG file
      Watermark text
    Outputs
      WebP files
      JPEG files
      PNG files
    Use Cases
      Batch resize photos
      Add brand watermark
      Strip background
    Tech Stack
      Python
      Tkinter
      Pillow
      rembg

Things people build with this

USE CASE 1

Batch convert a folder of JPG and PNG photos to WebP at a chosen quality setting.

USE CASE 2

Resize every image so the longest edge matches a fixed pixel value while keeping aspect ratio.

USE CASE 3

Stamp a logo PNG and a rotated text watermark across a whole image set before publishing.

USE CASE 4

Remove backgrounds from product photos with the u2net or silueta rembg models.

Tech stack

PythonPillowrembgTkinter

Getting it running

Difficulty · moderate Time to first run · 30min

Background removal needs a separate rembg install with the right CPU or GPU build on Python 3.8 or later.

MIT license, so you can use, modify, and redistribute the code freely as long as you keep the copyright notice.

In plain English

Resize WebP Tool is a desktop application written in Python for processing large batches of image files. The README is written in Vietnamese and describes version 2.0 of the tool. Its main purpose is to resize images, change their file format, and optionally stamp them with a logo and a text watermark in one pass. The interface is a graphical window split into three columns: a file list, a preview area with controls, and a logo and watermark panel. The core image operations include resizing to exact pixel dimensions, resizing so the longest edge matches a given value while keeping the aspect ratio, or leaving the size unchanged and only converting the format. Supported input formats are JPG, JPEG, PNG, WebP, BMP, TIFF, and GIF, while output can be saved as WebP, JPEG, or PNG. There is also a percentage based crop step that runs before resize, a quality slider from 1 to 100, and a background removal option that uses the rembg library with two model choices, u2net and silueta. Logos can be added from a separate PNG file. The user picks one of three sizing modes, fixed pixels, a percentage of the image width, or a percentage of the longest edge, and selects one of nine positions on the image along with opacity and padding settings. Text watermarks have their own font size, opacity, padding, and nine position options, and can be rotated between 0 and 360 degrees. There is also a tiling mode that repeats the text watermark across the whole image, which the README notes is a common approach for discouraging image theft. A live preview updates as settings change. Installation is via pip install resize-image-webp, then running the resize-webp command. A source install path is also documented, with an extra step to install rembg with a CPU or GPU build for background removal. The README states that Python 3.8 or later is required, with at least 2 GB of RAM, and that the tool runs on Windows, macOS, and Linux. Configuration is saved automatically to a JSON file. The license is MIT, and the version history covers v1.0 with basic resize and conversion, and v2.0 adding the logo, watermark, and three column UI.

Copy-paste prompts

Prompt 1
Install resize-image-webp from pip and walk me through converting a folder of JPGs to WebP at quality 80 with the longest edge at 1600 pixels.
Prompt 2
Configure resize-image-webp to add a corner logo at 10 percent image width plus a tiled text watermark rotated 30 degrees.
Prompt 3
Add a CLI mode to resize-image-webp so I can run the same batch settings from a shell script without opening the GUI.
Prompt 4
Switch the background removal model in resize-image-webp from u2net to silueta and explain when each one wins.
Prompt 5
Save and reload my resize-image-webp preset JSON so I can share batch settings with a teammate.
Open on GitHub → Explain another repo

Generated 2026-05-22 · Model: sonnet-4-6 · Verify against the repo before relying on details.