Skip to content
Private by design — every tool runs on your device · No upload · No watermark · No account
P pixelshift.
November 30, 2026 · batch· compression· workflow

A practical batch image processing workflow

Batch image work goes faster when the order is fixed. Learn how to sort, resize, convert and compress a set, what MozJPEG, libwebp and OxiPNG do, and how to export a ZIP.

Batch processing feels like a button you press, but the time is really spent deciding what every image in the folder should look like. Once those decisions are made, the mechanical part is quick. The workflow below keeps the decisions in an order that avoids redoing work.

Compress image tool showing target size and batch export controls
Set the geometry before the target size; compression can only work with the pixels you give it.

Sort the folder before you touch it

Open the set and separate it by purpose. Hero images, thumbnails and archival copies do not want the same dimensions or the same format. A single setting across all of them is convenient and usually wrong.

Also pull out anything that needs a manual fix: a crooked horizon, a screenshot with irrelevant interface chrome, or a cutout with a bad edge. Batch tools are good at repetition and bad at judgement. Fix the exceptions first, then run the rest together.

Fix geometry first

Decide the final dimensions before anything else. If the images will appear in a fixed grid, use the resize image tool to bring them to a common long edge or exact canvas. If some frames include too much empty space, crop them before resizing so the subject fills the area that matters. The crop image tool is worth a pass here because cropping after compression leaves more artefacts around the newly exposed edges.

The order is: crop, resize, convert, compress. Each step reduces or reorganises the data, and doing them in this sequence means you only encode once at the end.

Pick the codec for the content

The compression tool uses MozJPEG for JPG, libwebp for WebP and OxiPNG for PNG. They solve different problems.

MozJPEG is a JPEG encoder aimed at smaller files at comparable visual quality. It is the right choice when you need broad compatibility and the image has no transparency. Expect generation loss if you re-encode an already compressed JPEG; start from the best copy you have.

libwebp handles both lossy and lossless WebP and is usually the best choice for web delivery. It tends to beat JPEG at the same perceived quality and can carry alpha. If you know your audience’s browsers support it, WebP is a sensible default.

OxiPNG is a lossless PNG optimiser. It will not magically make a photograph small, because PNG is a poor fit for photographic content. It is excellent for flat graphics, UI elements, diagrams and images with transparency where every pixel must stay exact.

Use target size as a constraint, not a goal

A target-size field is useful when a upload limit or a performance budget is real. Set the largest acceptable size and let the encoder find the best quality under it. Do not chase an arbitrarily small number: the last few kilobytes usually cost the most in visible detail.

If you are preparing a set for a page, think in totals rather than per image. Ten images at 400KB each is a 4MB page before anything else loads. A tighter target on thumbnails buys more than an aggressive setting on the single hero image.

Expect a small first-run download

The first time you compress in the browser, the codec code needs to load. For this tool that is roughly 100 to 300KB depending on the format. It is cached afterwards, so a batch of fifty images does not pay that cost fifty times.

This is small compared with anything you would upload, but it is worth knowing about on a slow or metered connection. Start the first job with one image, confirm the codec has loaded, and then run the full set. That also gives you a chance to verify the settings on a real result.

Export a ZIP and keep it identifiable

Batch output is most useful as a ZIP archive. Download it with a name that records the settings — for example product-thumbs-1200-webp.zip — and keep it alongside the source folder rather than scattering files across a desktop.

If the set serves several destinations, make one archive per destination. A single archive mixing hero and thumbnail sizes invites mistakes when someone grabs the first file they see.

Write a small text file into each archive with the source folder name, the settings you used and the date. It takes a minute and it answers the question that always comes up later: which version was this? A batch that looks obvious while you are making it becomes anonymous surprisingly quickly once it sits beside three other downloads.

Quality-check a sample, not every file

Once the batch finishes, open three images: the simplest, the most detailed and the one you were least sure about. Check them at final viewing size, not at full zoom. Look for banding in gradients, mushy text and halos around sharp edges.

If all three pass, the rest almost certainly will. If one fails, fix that category of image rather than lowering quality for the entire batch. A detailed product photo and a flat logo should not share settings just because they arrived in the same folder.

Keep the rejected sample in a separate folder until the job is done. It is useful evidence when someone asks why the settings differ between two groups of images, and it saves you from repeating the same test at the next batch.

Mistakes that waste the most time

Compressing before resizing means encoding pixels you will throw away. Converting to JPG before removing a background bakes in a white or black fill that cannot be recovered. Re-encoding a JPEG that was already compressed adds artefacts each time. Running a batch twice with slightly different settings creates two sets that are hard to tell apart.

Avoid all four by naming each stage clearly and keeping the originals untouched. If a step needs to be repeated, go back to the source folder, not to the previous output.

A checklist for the next batch

  1. Sort by purpose and pull out manual fixes.
  2. Crop, then resize to final dimensions.
  3. Choose MozJPEG, libwebp or OxiPNG per group.
  4. Set a target size based on a real budget.
  5. Run one image first to warm the codec and confirm settings.
  6. Export a named ZIP and check three representative results.

A repeatable batch workflow is mostly about sequence. Get the order right once, write it down, and every later folder becomes a routine rather than a fresh set of decisions.