Skip to content

About

WebP Wizard is a professional, high-performance Windows desktop application built with Python and CustomTkinter. It is designed specifically for web developers, designers, and creators who need to batch-convert and optimize PNG, JPG/JPEG, and HEIC/HEIF images into lightweight, web-ready formats.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

WebP Wizard 🧙‍♂️ — Modern Web Image Optimizer

WebP Wizard is a professional, high-performance Windows desktop application built with Python and CustomTkinter. It is designed specifically for web developers, designers, and creators who need to batch-convert and optimize PNG, JPG/JPEG, and HEIC/HEIF images into lightweight, web-ready formats.


Key Features

  • Sleek 2-Column Sidebar UI: A clean sidebar on the left for configuration, leaving the main panel on the right open for drag-and-drop operations and queue monitoring.
  • Micro-interactions & Hover Effects: The drag-and-drop zone reacts dynamically when files are hovered or dragged over, providing a tactile, premium feel.
  • Asynchronous Thumbnail Previews: Generates crisp 40x40 thumbnails in the background, keeping the user interface fast and fluid even when loading dozens of images.
  • AI Prompt & EXIF Metadata Stripping: ChatGPT, Gemini, Midjourney, and DSLR photos contain heavy metadata (prompts, camera models, GPS data). WebP Wizard strips this by default for maximum speed and privacy, saving precious extra kilobytes.
  • Multi-threaded Batch Operations: Converted images are processed in parallel using a thread pool, delivering up to 4x faster processing on multi-core processors.
  • Flexible Resizing Capabilities:
    • Presets: Standard bounds like Large (1920px), Medium (1280px), and Small (640px).
    • Custom Bounds: Enter exact target Width and Height in pixels.
    • Percentage Scaling: Scale down dimensions by fixed percentages (e.g. 75%, 50%, 25%, 10%).
  • Web Presets Dropdown: Instantly apply configurations for Hero Images, Standard Blog Content, Thumbnails, or Lossless Graphics (transparent logos).
  • Responsive Srcset Variants: Automatically generate multiple web-scaled versions (e.g., -lg, -md, -sm, -thumb) of each source image in one click.
  • HTML <picture> Code Exporter: Generates fully-coded, copy-pasteable responsive HTML <picture> elements for direct integration into front-end projects, complete with fallback logic and dimensions.
  • Detailed Size Savings Dashboard: Shows exact size savings in kilobytes and percentage reduction for each individual image, along with a total savings tally for the entire batch.
  • HEIC/HEIF Input Support: Fully reads iPhone image formats out of the box if pillow-heif is available.

Installation

  1. Make sure you have Python 3.8+ installed.
  2. Clone or download the repository.
  3. Install dependencies:
    pip install -r requirements.txt

Usage

  1. Launch the application:
    python main.py
  2. Drag and drop single files, groups of files, or entire folders of images into the upload zone (or click it to open a standard file browser).
  3. Select an Optimization Preset (e.g., Standard / Blog) or build a custom configuration.
  4. Toggle Responsive Variants if you need multi-sized images for HTML srcset.
  5. Click Convert Queue.
  6. Once complete, click 📋 Copy HTML Code to copy the responsive picture tags directly into your clipboard!

Standalone Executable Packaging

To package WebP Wizard as a single folder structure (supporting Inno Setup):

  1. Generate the custom icon first:
    python generate_icon.py
  2. Run PyInstaller using the provided .spec file:
    pyinstaller main.spec
  3. The executable and bundled DLLs will be output to the dist/WebPWizard/ folder.

To pack as a single, portable executable:

pyinstaller --onefile --windowed --icon=icon.ico --name=WebPWizard main.py

Dependencies

  • customtkinter (Sleek dark theme controls)
  • tkinterdnd2 (Robust OS drag-and-drop)
  • Pillow (High-quality image processing)
  • darkdetect (Seamless system dark/light mode detection)
  • pillow-heif (Native HEIC/HEIF photo decoding)

by Muhammad Haseeb

About

WebP Wizard is a professional, high-performance Windows desktop application built with Python and CustomTkinter. It is designed specifically for web developers, designers, and creators who need to batch-convert and optimize PNG, JPG/JPEG, and HEIC/HEIF images into lightweight, web-ready formats.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages