Utility · Performance2026

Image Optimizer

A tool for reducing image file sizes while allowing users to compare the results visually before downloading.

Visit live project
Role
Independent project
Contribution
Design, development, testing
Technology
JavaScript · WebAssembly · Web Workers
Status
Live
Image Optimizer showing the original and WebP-optimized nebula creature artwork side by side, with file sizes and four output formats.

It started with one image.

Smaller image files are useful for websites, emails and sharing, but reducing their size can sometimes affect how they look.

I wanted a tool that would let me compare the original image with smaller versions before deciding which one to keep, without uploading the image to a separate service.

Compact two-column format options showing WebP, AVIF, JPG and PNG results with a download button.

01 / Interface

Giving the image more room.

My early designs gave too much space to file format settings. After trying larger cards and a dropdown, I moved toward smaller controls that kept the available formats visible without taking attention away from the images. Comparing the results needed to be the main experience.

Original and optimized nebula creature artwork overlaid with the draggable comparison slider at 127% zoom.

02 / Interaction

Two versions, one view.

Comparing two images side by side can make small differences difficult to spot. I added a slider that lets users drag across the image to reveal the original and compressed versions in the same view. The side-by-side option remains available for a broader comparison.

Comparison slider at 333% zoom, showing close-up details of the creature’s face, glowing markings and fabric.

03 / Refinement

Getting closer to the details.

An image may look perfectly fine at first glance, even when some details have been lost. I added the ability to zoom in and move around the image while keeping both versions aligned. This makes it easier to inspect fine textures, edges and small differences before choosing a file.

04 / Implementation

Going beyond the browser’s limitations.

The first version relied on the browser’s built-in image processing, but that limited the available file formats and optimization options. I introduced specialized image-processing tools using WebAssembly, allowing more control over the results while keeping all processing on the user’s device.

I also discovered that reducing the number of colors in an image could sometimes make the file larger. That changed how I presented the optimization settings: they describe the adjustments being made rather than promise a smaller file every time.

05 / Performance

Keeping the interface responsive.

Preparing large images could briefly make the interface unresponsive, even when compression was already running in the background. I moved more of the preparation work into Web Workers, which let the browser handle that work separately from the interface.

Before preparation change
116–478 ms
After preparation change
0–64 ms

Time spent in long tasks related to image preparation during a 3600 × 2400 JPEG development test. Bars represent the upper end of each measured range, not total processing time.

More than making files smaller.

What began as a simple image compression tool became an exercise in balancing image quality, usability and performance.

Building it reinforced the importance of understanding how people interact with a tool, rather than simply adding more settings and features.

Visit the live demo.

Open Image Optimizer