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.
- 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
40x40thumbnails 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, orLossless 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-heifis available.
- Make sure you have Python 3.8+ installed.
- Clone or download the repository.
- Install dependencies:
pip install -r requirements.txt
- Launch the application:
python main.py
- 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).
- Select an Optimization Preset (e.g., Standard / Blog) or build a custom configuration.
- Toggle Responsive Variants if you need multi-sized images for HTML
srcset. - Click Convert Queue.
- Once complete, click 📋 Copy HTML Code to copy the responsive picture tags directly into your clipboard!
To package WebP Wizard as a single folder structure (supporting Inno Setup):
- Generate the custom icon first:
python generate_icon.py
- Run PyInstaller using the provided
.specfile:pyinstaller main.spec
- 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- 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