Home  /  Guides  /  What one blur radius does to a batch

One Radius, Three Filters, Eleven Files

Updated 2026-11-20 · measured on 12 mixed files, 20,934,926 bytes, one radius, three filter families

The short answer

One radius is not one blur. A radius of 9 pixels applied to 11 readable files changed 62.392% of all pixels under Gaussian, 60.854% under box and 54.909% under median. The per-file share ran from 0.008% to 99.969%.

At the extremes, the median filter left the transparent logo almost untouched while Gaussian rewrote nearly every pixel of the 128 x 128 icon. Twelve files went in, eleven decoded, and 33 PNGs came out. Two independent runs wrote byte-identical files, both hashing to SHA-256 e545d354d6a63fad.

This page measures what one blur decision does to a folder of mixed files. For other one-in-one-out operations on the same twelve files, see the batch invert measurement, the batch grayscale measurement and the batch rotate measurement. For a rectangle applied across a folder, the batch crop measurement covers padding; for many files into one canvas, the batch merge measurement; for one file into many tiles, the batch split measurement; for one radius that changes corners rather than pixels, the batch round-corners measurement.

1. The batch and where the numbers come from

Twelve files, 20,934,926 bytes on disk and 63,016,384 pixels across the 11 that decoded. One radius, 9 pixels, was applied to every file through three filter families: Gaussian, box and median. Each file was written as a PNG in each family, 11 files times 3 filters = 33 outputs. Every output was reopened from disk and compared with the decoded input, pixel by pixel.

What the twelve files were: two byte-identical 3000 x 4000 portrait JPEGs, one 4000 x 3000 landscape JPEG, one 3000 x 4000 grayscale JPEG, one 2000 x 1500 JPEG with an orientation tag, one 3000 x 3000 PNG, one 1200 x 800 transparent PNG with 607,580 fully transparent pixels, one 128 x 128 PNG icon, one 1600 x 900 WebP, one 400 x 300 six-frame GIF, one 800 x 600 16-bit grayscale PNG, and one truncated JPEG. Pillow 13.0.0, numpy 2.5.4 and Python 3.13.14 ran locally; no file left the machine. Each input was converted to RGBA first, because the three filters only accept L, LA, RGB or RGBA — that conversion is itself recorded below.

2. One number, three different meanings

The library documents three different definitions behind one radius control. Gaussian radius is the standard deviation of the kernel. Box radius is the size of the box in one direction: radius 0 returns an identical image and radius 1 averages 9 pixels. Median size is the kernel size in pixels and must be odd, which is why the sweep uses 9. A separate article claims Pillow computes a Gaussian kernel of 2 times radius plus 1; the library documentation we read defines radius as a standard deviation and does not state that formula, so we did not use it as a measurement.

Applied to the same folder, the three definitions changed different numbers of pixels. Gaussian altered 39,317,126 pixels, box 38,348,295 and median 34,601,670, out of 63,016,384. Gaussian changed 1.136 times as many pixels as median across the batch.

FilterPixels changedShare of batchPNG bytesvs input bytes
Gaussian19,712,4750.942 x39,317,12662.392%
Box25,293,7981.208 x38,348,29560.854%
Median39,186,9381.872 x34,601,67054.909%

Bytes are the sum of all 33 PNG files written to disk. The input total is 20,934,926 bytes. A filter that changes fewer pixels can still write more bytes: the median outputs totaled 39,186,938 bytes against 19,712,475 for Gaussian because blocky, flat patches compress differently from smooth gradients.

Bytes written by each filter across eleven files Gaussian19,712,475 Box25,293,798 Median39,186,938
Total PNG bytes for eleven files under each filter. The longest bar is 39,186,938 bytes, drawn 230 units wide.
Your call: if your folder mixes large photos with icons and transparent logos, one radius will not read as one strength across all of them. Decide which files set the visual baseline before exporting the whole batch; this run measures the differences but cannot pick the baseline for you.

3. The per-file ledger

The same 9 pixel radius produces a different change rate on nearly every file. The table shows each file's native size, its pixel count, the share of pixels changed by each filter, and the Gaussian PNG size in bytes. One row is a failure, not a zero.

FileSizePixelsGaussianBoxMedianGaussian bytes
photo_landscape.jpg4000 x 300012,000,00062.233%61.345%55.931%4,113,332
photo_portrait.jpg3000 x 400012,000,00062.222%61.283%56.012%4,081,332
photo_square.png3000 x 30009,000,00081.918%80.229%71.442%4,058,639
duplicate_photo.jpg3000 x 400012,000,00062.222%61.283%56.012%4,081,332
exif_orient6.jpg2000 x 15003,000,00066.071%63.742%57.319%1,104,463
screenshot.webp1600 x 9001,440,00069.611%66.383%57.282%552,032
logo_alpha.png1200 x 800960,00017.836%8.132%0.008%110,065
gray_16bit.png800 x 600480,0004.019%1.871%0.091%4,098
gray_8bit.jpg3000 x 400012,000,00052.747%50.674%45.514%1,592,546
animation.gif400 x 300120,00018.473%7.5%0.027%4,277
small_icon.png128 x 12816,38499.969%80.835%65.704%10,359
broken.jpgfailed to decode, skipped; no output

The two byte-identical portrait JPEGs produced byte-identical outputs under each filter, so their rows match. The 128 x 128 icon reached 99.969% under Gaussian; the transparent logo reached only 0.008% under median. Those two numbers are the ends of the range in this batch.

One radius, seven change rates icon / Gaussian99.969% square / Gaussian81.918% orient6 / Gaussian66.071% landscape / Gaussian62.233% 16-bit / Gaussian4.019% GIF / Gaussian18.473% logo / median0.008%
Seven change rates under one radius. The longest bar is 99.969%; the rest are scaled to it.

4. The radius sweep: zero is a real setting

Holding the first 4000 x 3000 photo fixed and moving the Gaussian radius gives the shape of the control. At 0 pixels the output was identical: 0 pixels changed. At 1 pixel, 37.497% of the image changed. At 9 pixels it was 62.233%, and at 50 pixels 71.254%. The byte count falls as the radius rises, from 12,661,759 bytes at zero to 2,059,609 bytes at 50, because a smoother image compresses smaller.

RadiusPixels changedSharePNG bytesFilter ms
000.0%12,661,75917.8
14,499,63537.497%10,884,550700.7
26,220,27051.836%8,271,190666.4
36,717,28055.977%6,753,462653.0
57,127,42259.395%5,252,685656.6
97,467,98262.233%4,113,332670.2
157,747,61664.563%3,384,126660.6
258,045,20767.043%2,797,530669.6
508,550,49771.254%2,059,609675.0

Timings are single measurements on one photo, not an average, and they are shown so the sweep is reproducible rather than to rank machines. The first non-zero radius in this sweep was 1.

Radius sweep on one 4000 x 3000 photo r = 00.0% r = 137.497% r = 251.836% r = 355.977% r = 559.395% r = 962.233% r = 1564.563% r = 2567.043% r = 5071.254%
Radius sweep on one photo. Zero is drawn in gold because it writes an identical image, not a blurry one.
Your call: the jump from no change at radius 0 to 37.497% changed at radius 1 is not a gentle ramp. If you are dialing this in by eye, start at 0 and step up one pixel at a time rather than guessing a large value; where the image stops being readable is your decision, not a number this run can set.

5. Transparency is not preserved equally

The 1200 x 800 logo started with 607,580 fully transparent pixels and 2 distinct alpha values. Filtering changes that edge. Gaussian moved 80,996 formerly transparent pixels out of transparency and gave 220,600 of them a non-zero RGB value. Box moved 36,252. Median moved 0 and kept the alpha at 2 distinct values.

FilterTransparent beforeTransparent afterBecame solidGot RGB valueAlpha levels
gaussian607,580526,58480,996220,600256
box607,580571,32836,252189,600256
median607,580607,6280160,8282
Your call: a blur that is invisible on a white-background photo can soften the edge of a transparent logo. If transparency is part of the asset rather than a by-product, look at the logo output first and decide whether a filter that holds the alpha steady is worth a different look elsewhere.

6. Depth, frames and orientation

Three files carry state that a blur batch can quietly drop.

7. Twelve in, eleven out

The twelfth file was a 1,200-byte truncated JPEG that failed with OSError: image file is truncated (2 bytes not processed). The run skipped it and kept going, producing 33 outputs rather than 36. The 11 readable inputs totaled 20,933,726 bytes; the 1,200 truncated file accounts for the difference from the 20,934,926 byte total.

8. Timing and repeatability

Applying the three filters across the batch took 131,760.0 ms of measured filter time, and writing the 33 PNG files took 24,710.0 ms. The whole run, including a separate repeat pass, took 337,085.5 ms; median on the large photos dominates that figure. A second independent pass wrote 33 files, and both flat trees hashed to SHA-256 e545d354d6a63fad. The same input and setting produce the same bytes every time.

What was not measured

We did not measure stack, motion, radial, heavy radial or soften blur, percentage radii, region masks, face detection, a quality score, output as JPEG or WebP, resizing, or tag reinsertion. We did not use a second image library or a hardware accelerator. The interface caps quoted in section 1 are claims from public pages, not values from this run. All figures come from 11 local files, a single radius of 9 pixels and three filter families; a different radius or folder changes every percentage here.

Questions and answers

What types of blur effects are available?

Seven modes are advertised on one tool page: stack, Gaussian, motion, box, radial, heavy radial and soften. In the local run we measured three families that accept a single radius or size number from the image library: Gaussian, box and median. They are not the same operation. With a radius of 9 on 11 files, Gaussian changed 39,317,126 pixels, box 38,348,295 and median 34,601,670. The other four modes need a second control such as an angle, a centre or a blend strength, so one number cannot describe them.

How do I control the intensity of the blur effect?

The same number means three different things. The library documents Gaussian radius as the standard deviation of the kernel, box radius as the size of the box in one direction, and median size as the kernel size in pixels. We swept the Gaussian radius on one 4000 x 3000 photo: at 0 pixels 0 pixels changed, at 1 pixel radius 37.497% changed, and at 9 pixels 62.233% changed. Moving the number is not a linear step in blur.

Can I blur images for privacy purposes?

Blur removes detail, but this run does not establish that it hides a face or plate. What it measures is pixel change: under a 9 pixel radius, Gaussian altered 62.392% of the 63,016,384 pixels, box 60.854%, median 54.909%. On the 128 x 128 icon Gaussian altered 99.969%, while on the 1200 x 800 transparent logo median altered only 0.008%. Whether that is enough for your subject is a judgement this measurement cannot make for you.

What is the maximum file size?

The largest local input decoded was 20,934,926 bytes across 12 files, and 11 of them were readable. One 1,200-byte truncated image failed with an OSError and produced no output. Public pages advertise their own caps, 15 MB on one and 25 MB on another; those are interface claims, not measurements from this run, and they are not the same as what a local batch can open.

Does one blur setting change every file by the same amount?

No. Under a single 9 pixel radius the share of pixels changed ran from 0.008% on the transparent logo with the median filter to 99.969% on the 128 x 128 icon with Gaussian. Grouped across the batch, Gaussian changed 62.392%, box 60.854% and median 54.909% of all 63,016,384 pixels. The same number produces a barely visible change on one file and almost total change on another.

Does blur spread colour into transparent corners?

On the 1200 x 800 logo, 607,580 pixels started fully transparent. Gaussian left 80,996 of them no longer transparent and gave 220,600 of them a non-zero RGB value; box moved 36,252 and median moved 0. Alpha values went from 2 distinct levels to 256 under Gaussian and 256 under box, but stayed at 2 under median. If the output must keep a hard transparent edge, the filter choice matters more than the radius.

What happens to 16-bit, animated and orientation-tagged files?

The 800 x 600 grayscale PNG held 65,536 distinct levels; after conversion for filtering the saved file carried 256, a 256-level ceiling. The GIF carried 6 frames and the converted copy carried 1. The orientation tag of 6 on the portrait JPEG survived the filter and read 6 on the output. Three file types, three different surprises from one batch.

Does the batch repeat exactly?

Yes. Two independent full runs of all three filter families produced 33 PNG files each, and both flat trees hashed to SHA-256 e545d354d6a63fad. The first pass spent 131,760.0 ms applying filters and 24,710.0 ms writing files; the whole run including the separate repeat pass took 337,085.5 ms. Determinism is about bytes, not speed: the same setting writes the same file every time.

What was left unmeasured?

We did not measure stack, motion, radial, heavy radial or soften blur, because they need controls beyond a single radius. We did not measure percentage radii, region masks, face detection, a quality score, output as JPEG or WebP, or any change to image dimensions. All figures come from 11 local files, one radius of 9 pixels and three filter families. A different radius or folder changes every percentage here.

Related measurements on the same twelve files: what one rectangle does to a batch, what one split button does, what one combine button does, and what one corner radius does. For a single-file crop, the photo cropper measurement covers what is thrown away; the crop image page does the cut locally. Batch flipping is a different operation with its own page.

See all free image tools and measured guides