Skip to content
← Back to the reference shelf

Bulk Image Resizer: Resize Multiple Photos to Exact Dimensions

In this guide
AI-generated illustration; not taken on location · Batch resize rule diagram with mixed photo orientations and separate output folder.
AI-generated illustration; not taken on location · A batch resize rule handles mixed source files without touching the originals.AI-generated illustration

Resizing one image is a decision. Resizing sixty is a rule. The moment a folder contains files shot on different cameras, cropped at different times, and saved at different dimensions, every per-file decision becomes a chance to introduce an inconsistency nobody notices until the grid of thumbnails loads and half of them look wrong.

This is a practical walkthrough of the folder-level approach: upload a batch, choose one sizing mode, choose one geometry policy, choose one output format, and export to a new folder. Along the way we’ll pin down the parameters worth writing down before you start — the target box, the fit/fill decision, the orientation policy, the quality setting, the filename pattern — and the check you read afterwards to confirm the rule did what you intended.

The core claim is narrow: a single well-chosen rule should produce visually consistent output from a folder of inconsistent input. If it doesn’t, the rule is wrong, not the files.

Why a folder, not a file

The jobs people actually have are folder-shaped. A blog needs every inline image at one column width. A shop needs thumbnails generated from a set of originals. A photographer needs a delivery set of store photos inside a fixed box. In each case the input is a directory and the output is a directory, and the thing in between is a rule.

Single-file editors push you toward the wrong unit of work. With sixty files you make sixty decisions, and the sixty-first decision is subtly different from the first because you were tired. The result is a folder where three images are 1200 px wide, two are 1180, and one is 1500 because you misread the dialog.

A batch tool inverts this. You define the rule once, then push a queue through it. The rule has five parts, and it’s worth naming them explicitly because most bad batches get one of them wrong:

  • Sizing mode — pixels, percentage, or preset.
  • Target value — the number or preset the mode consumes.
  • Geometry policy — fit, fill, or stretch.
  • Output format and quality — JPEG, PNG, or WebP.
  • Destination and naming — where the results go and what they’re called.

Everything downstream — the progress bar, the ZIP archive, the exported report — is just bookkeeping on top of those five choices. Design the rule, run the queue, read the results.

Three sizing modes: pixels, percentage, presets

The three modes differ in one important respect: what each file is measured against.

Exact pixels. You state a target, for example 1200 × 800, and every file in the batch is measured against that same box. This is the mode for a known destination — a hero image slot, a product grid cell, a fixed-size email header. It imposes one target on all files regardless of what they were originally.

Percentage. Each file is scaled against itself. A batch set to 50% turns a 4000 × 3000 original into 2000 × 1500 and a 1600 × 900 original into 800 × 450. Nothing about the relative sizes of the files changes; the folder keeps its internal proportions. This is the right mode when you want a lighter delivery set rather than a specific dimension — proofing copies, an archive of smaller previews, a set where relative size carries meaning.

Presets. A preset is a named pixel target stored for reuse: a 300 × 300 thumbnail, a 1200-wide blog image, a 2000 × 2000 store box. Functionally it’s the pixel mode with the numbers saved for you, and that’s the point — the number lives in one place, so a later change to the site’s column width is one edit rather than a re-typed dialog. Whether a particular tool ships presets, and which ones, is worth verifying before you rely on it.

Targets aren’t limited to pixels. A resize target can also be expressed in percent, inches, or centimeters, which matters when the destination is print and the constraint is physical rather than on-screen. Percentage and fit-within sizing both behave correctly on a batch of mixed original dimensions, because each file is measured against itself. One constraint to remember: percentage resizing combined with fill or fit needs a width value to work from — a height-only percentage target only makes sense with stretch, which is the mode you want to avoid anyway.

Fit vs fill vs stretch: cropping versus fitting

Geometry policy decides what happens when the source’s shape doesn’t match the target’s shape. Almost every disappointing batch output traces back to this one choice.

Work it through with a concrete case. Take a 3000 × 2000 source (3:2 landscape) and a target box of 800 × 800 (1:1).

Fit scales the image proportionally until the whole thing is inside the box. Scale factor 800 ÷ 3000 = 0.267, giving 800 × 533. Nothing is cropped; the image doesn’t fill the box vertically, and the remaining space is either transparent or a chosen background color. Fit is the policy for anything where every pixel matters — a diagram, a screenshot, a photo where the subject runs to the edge of the frame.

Fill scales proportionally until the box is covered, then crops the overflow. To cover 800 × 800 from a 3000 × 2000 source, the binding dimension is the short side: 800 ÷ 2000 = 0.4, giving 1200 × 800. That’s 400 px wider than the box, so 200 px comes off each side (or all of it off one side, depending on the anchor). Fill is the policy for grids and cards, where a ragged mix of letterboxed and filled tiles looks broken and consistent cropping looks deliberate.

Stretch forces the image to the exact box with no cropping. The 3000 × 2000 source becomes 800 × 800 — horizontally squeezed by a factor of 1.5 relative to the vertical. Faces get narrow, circles become ovals. Stretch is the distortion option; it produces aspect-ratio distortion. There is almost no case where it’s the right answer for photographs; it exists mainly for the rare situation where the geometry is meaningless, such as a solid color plate or a test pattern.

The decision rule is one sentence: fit when nothing may be lost, fill when the box must be filled. Everything else is a detail.

Preserving aspect ratio without guessing

The most common way to distort a batch is also the most innocent: typing a number into both the width and the height field because both fields are there.

If the tool accepts two literal numbers with no geometry policy attached, it has no choice but to stretch. The source ratio and the target ratio almost never match exactly, so the difference is absorbed as squeeze.

The practical fix is to leave one dimension blank. When only the width is set, the missing height is computed from each file’s original aspect ratio. A 1200-wide rule applied to a 4000 × 3000 file yields 1200 × 900; applied to a 1920 × 1080 file it yields 1200 × 675. Every output keeps its own proportions, and the folder stays internally consistent because every file obeys the same width rule.

Two supporting settings are worth turning on at the same time:

Shrink-only. A shrink-only switch stops the rule from enlarging files that are already smaller than the target — it’s the usual cause of soft output. Without it, a 600-wide image in a folder targeting 1200 px gets doubled, and doubling never adds detail; it just makes the softness bigger. Bulk resizing works best when sources are already larger than the target; downscaling preserves quality, upscaling does not. No quality setting rescues an upscaled file.

A consistent anchor. If you’re using fill, decide whether the crop comes off the center, the top, or the bottom, and apply that to the whole batch. Mixed anchors produce a grid that looks randomly composed even when every tile is technically the right size.

Mixed orientations in one batch

A folder assembled from a phone and a camera will contain both portrait and landscape frames. This is where literal width/height assignment quietly falls apart.

Set a rule of 1200 × 800 and apply it literally to a 2000 × 3000 portrait file. The portrait is now 1200 wide and 800 tall — landscape-shaped. If the policy is fill, the tool crops away more than half the height to get there. If the policy is fit, the result is a small portrait swimming in horizontal padding. Either way, the portrait and the landscape files no longer read as the same size on the page.

The alternative is orientation-aware sizing. With orientation-ignoring enabled, the specified width and height may be swapped per image, so portrait files receive 800 × 1200 while landscape files receive 1200 × 800. Both end up with the same long side and the same short side; they simply wear them the other way round. In a grid, they read as the same visual size, which is what the eye actually judges.

Which one you want depends on the destination:

  • A fixed-shape slot (a 16:9 hero, a square product tile) wants literal assignment plus fill. Orientation consistency is the crop’s job, not the rule’s.
  • A flexible grid or gallery wants orientation-aware sizing, so the layout can accommodate either shape without one orientation looking like a downgrade.

Whichever you choose, apply it to the whole folder. A batch where half the files were swapped and half weren’t is worse than either policy applied consistently.

Choosing the output format

Format is a three-way trade between file size, transparency, and predictability.

JPEG is the most widely supported lossy format and produces small files for photographic content, but it cannot hold a transparent background, so a transparent PNG converted to JPEG gains a solid background. That second property is the source of the single most common batch surprise: a transparent PNG run through a JPEG output setting gains a solid background — usually white, sometimes black — because the encoder has nowhere to put the alpha channel. If your source set includes logos, icons, or cut-out product shots, this shows up as a rectangle of color behind every one of them.

PNG preserves transparent backgrounds and handles flat color, sharp edges, and text cleanly, at the cost of much larger files. It’s the right choice for logos, screenshots, and UI assets — anything where a hard edge would be smeared by a lossy encoder.

WebP is typically smaller than JPEG at comparable visual quality while still supporting transparency, which is why it’s the usual default for site images. The remaining question is what has to open the files downstream of you, not what the tool can write.

On quality: a setting around 70–80% is a reasonable default for photographic output. Below 50%, artifacts start appearing around text and hard edges — ringing, blockiness, and smeared letterforms — and those artifacts survive every subsequent re-save.

Two notes on scope. First, format doesn’t rescue a bad rule; a high-quality setting on an upscaled file is still a soft file. Second, if a tool offers a fallback encoder, understand what it is: it rescues formats that have no writer, not a general format-conversion feature, and it shouldn’t be relied on in place of real format support. Which input formats a given browser-based tool can actually decode — and which it cannot — is something the tool should state plainly, so check its documented format list before you queue a large folder rather than discovering the gap from a list of failures.

Keeping originals intact

The rule that costs nothing and saves everything: write to a new folder. Never let a batch write back over its own inputs.

Overwrite-in-place is attractive because it’s tidy — one folder, no duplicates. It’s also irreversible. A wrong geometry policy, a wrong target, a format change that flattened a transparent background: all of these become permanent the moment the output replaces the source. With a separate output folder, the same mistake costs you a re-run.

Naming is the second half of traceability. A pattern that composes the original name with a marker makes every output file self-documenting:

  • Prefix or suffix — web- in front or -1200w behind, so sorted lists group by rule rather than by subject.
  • Sequence numbers with zero-padding — 001, 002, 003, not 1, 2, 3, so lexical sorting matches processing order.
  • Size tokens — filename patterns can include the preset name, the selected width and height, and the actual width and height, which is exactly the information you need when a later audit asks why one image is 1200 × 900 and its neighbor is 1200 × 675.

Duplicate names need handling before the run, not after. Two source folders both containing IMG_0001.jpg will collide in a flat output directory unless a sequence or a folder token disambiguates them. Most tools also replace characters that are illegal in filenames with an underscore, which is fine as long as you know it happened.

When the batch finishes, the deliverable is normally a single ZIP archive or a set of individual per-file downloads from the result list. Take the archive, keep it separate from the source folder, and keep any accompanying report alongside it.

Memory, concurrency, and large folders

Browser-based batch tools run into a hard physical limit, and it’s worth understanding the arithmetic rather than just knowing the limit exists.

A decoded image occupies roughly width × height × 4 bytes in memory, one byte each for red, green, blue, and alpha. A 6000 × 4000 photo is 24 million pixels, so on the order of 96 MB decoded — and that’s before any intermediate buffers the resize operation allocates. Hold a couple of dozen of those in memory at once and you are in the gigabytes, which is where a tab stops responding, the progress bar freezes, and the user concludes the tool is broken.

The failure mode is almost never one enormous file. It’s decoding everything at once. A few hundred large photos can consume a lot of memory in a local-processing tool, so large jobs should be split into smaller batches.

What actually keeps a run stable:

  • Bounded concurrency. The number of images decoded simultaneously has to be capped well below the folder size. A small, fixed number keeps the pipeline busy without holding many full-size buffers at once.
  • Splitting the folder. For a folder of several hundred files, run it as a handful of smaller jobs, each exported as its own package. Slower to start, far less likely to die halfway.
  • Object URL cleanup. Each preview or intermediate image created as an object URL holds its blob in memory until it’s revoked. A tool that doesn’t revoke them leaks steadily across a long run; one that does stays flat.
  • Cancellation. A run you can stop mid-queue is a run you can afford to start optimistically.

If a batch stalls anyway, the useful diagnostic is the queue position at the moment it froze — that tells you whether it died on a specific oversized file or on accumulated memory across many normal ones.

Reading the processing report

The export is more than images. Alongside the ZIP archive or the individual downloads, a data-processing report often accompanies the results, and skipping it means accepting whatever happened without checking. Read the exported report if one is provided, and inspect the result list otherwise.

What to check on each row:

Field What it tells you Warning sign
File name Ties each row back to its source and confirms the naming rule didn’t collide Two rows with identical output names
Original dimensions What went in, before the rule touched it Files already smaller than the target (candidates for skipping)
Output dimensions Whether the rule fired as designed A square output from a non-square source (stretch), or a width larger than the target (rule not applied)
Output bytes A relative signal on format and quality One row an order of magnitude larger than its neighbours
Status Where the exceptions live Any row that isn’t a clean success

On output dimensions, the pattern is the proof. For a width-only rule of 1200, every row should show an output width of 1200 and a height that varies with each file’s own ratio. Uniform heights across mixed sources mean the aspect ratio was overridden somewhere.

On output bytes, don’t look for an absolute threshold — compare rows against each other. A file that is dramatically larger than similar neighbours usually means a PNG output slipped in, or the quality setting was left at maximum.

On status, expect a short vocabulary: a completed state, a skipped state, a failed state. Skipped usually means a shrink-only rule declined to enlarge a small source — correct behavior, but worth counting, because a folder where a large share of files were skipped may need a different rule. Failed means the file didn’t convert at all: an unsupported input format, a corrupt file, an encoder error. A failed row is not a no-op; it’s a decision you still owe.

The discipline is simple: sort by status before you ship, and resolve every non-success row. Silently accepting a batch means the failed files become broken images on a live page, discovered by a reader rather than by the review step.