Home  /  Guides  /  What one sharpen pass does to a batch

One Setting, Eleven Different Results

Updated 2026-11-22 · measured on 12 mixed files, 20,934,926 bytes, one unsharp-mask setting

The short answer

One sharpen setting is not one sharpen result. A single radius-2 pass changed 50.677% of 63,016,384 pixels across 11 readable files, but the per-file share ran from 0.386% on gray_16bit.png to 66.62% on small_icon.png — a 172.6-fold spread.

The "strength" number is also not what it looks like. Setting percent to 100, 150, 200, 300 or 500 changed exactly the same 6,176,385 pixels; only the byte size moved. Dropping the threshold from 50 to 0 multiplied the changed-pixel count 13.93 times. Two independent runs wrote byte-identical files.

This page measures what one sharpen 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 radius applied to every blur family, the batch blur measurement covers the three filters. For a rectangle across a folder, the batch crop measurement covers padding; for one radius that changes corners rather than edges, 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. Every readable file received one unsharp-mask pass with the same three settings: radius 2, percent 150, threshold 0. Each output was written as a PNG, reopened from disk and compared with the decoded input, channel by channel. Eleven files times one pass equals 11 outputs; one truncated file produced nothing.

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, 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 1,200-byte JPEG. Every input was converted to RGBA first, because the filter works on L, LA, RGB or RGBA; that conversion is recorded in section 6. Nothing left the machine. Pillow 13.0.0, numpy 2.5.4 and Python 3.13.14.

2. One setting, three controls that mean different things

The library documents radius as the standard deviation of the Gaussian kernel, percent as the amplification applied to the difference, and threshold as the minimum difference a pixel must exceed before it is touched. Their defaults are 2, 150 and 3. This run used 2, 150 and 0. Only the first of the three behaves like a simple size dial: the sweeps below show the other two doing something less obvious.

Applied to the same folder, one pass changed 31,934,946 pixels out of 63,016,384, or 50.677%. The mean absolute channel shift ran from 0.13 on gray_16bit.png to 12.23 on small_icon.png. Count and amplitude are not the same measurement; the sweeps keep them separate.

One setting, nine change rates small_icon 66.62% photo_square 64.985% screenshot 56.942% exif_orient6 53.937% photo_landscape 51.47% gray_8bit 41.644% logo_alpha 2.629% animation.gif 2.0% gray_16bit 0.386%
Share of pixels changed by one setting on nine of the eleven files. The longest bar is 66.62%; the shortest is 0.386%. Scaling is linear to the longest bar.
Your call: if the folder mixes large photos, icons and flat graphics, one setting will not read as one strength. Decide which file sets the visual baseline before exporting the batch; this run measures the spread but cannot pick the baseline for you.

3. The per-file ledger

The same radius and percent produce a different change rate on almost every file. The table lists each readable file's native size, pixel count, share of pixels changed, mean absolute channel shift and output size in bytes.

FileSizePixelsChangedMean shiftOutput bytes
photo_landscape.jpg4000 x 300012,000,00051.47%7.3215,198,110
photo_portrait.jpg3000 x 400012,000,00051.809%7.3615,216,489
photo_square.png3000 x 30009,000,00064.985%9.5714,402,109
duplicate_photo.jpg3000 x 400012,000,00051.809%7.3615,216,489
exif_orient6.jpg2000 x 15003,000,00053.937%8.113,905,203
screenshot.webp1600 x 9001,440,00056.942%8.361,809,949
logo_alpha.png1200 x 800960,0002.629%0.4121,681
gray_16bit.png800 x 600480,0000.386%0.133,433
gray_8bit.jpg3000 x 400012,000,00041.644%7.936,896,911
animation.gif400 x 300120,0002.0%0.641,307
small_icon.png128 x 12816,38466.62%12.2328,166
broken.jpgfailed to decode, skipped; no output

The two byte-identical portrait JPEGs produced byte-identical outputs, so their rows match. The largest share, 66.62%, belongs to small_icon.png; the smallest, 0.386%, to gray_16bit.png. Those two files sit 172.6-fold apart under one setting. Mean shift is the average absolute difference per colour channel on a 0 to 255 scale.

4. Percent saturates: the strength dial stops counting

Holding radius 2 and threshold 0 fixed and moving percent gave the clearest surprise in the batch. At 0 percent the image was unchanged. At 50 percent, 4,418,861 pixels changed. At 100 percent the count reached 6,176,385 — and it stayed at 6,176,385 for 150, 200, 300 and 500 percent. The pixel count saturated while the byte size kept moving, from 14,898,159 bytes at 100 percent to 15,198,110 at 150 and 13,428,848 at 500.

PercentPixels changedShareOutput bytes
000.0%12,661,759
504,418,86136.824%13,862,225
1006,176,38551.47%14,898,159
1506,176,38551.47%15,198,110
2006,176,38551.47%14,850,763
3006,176,38551.47%14,397,622
5006,176,38551.47%13,428,848

One file, 4000 x 3000, radius 2, threshold 0; each row re-encoded to PNG. The zero-percent row is still a PNG re-encode and is larger than the source JPEG, so it measures the write path, not the filter.

Percent stops changing the pixel count percent 0 0.0% percent 50 36.824% percent 100 51.47% percent 150 51.47% percent 200 51.47% percent 300 51.47% percent 500 51.47%
The five bars from 100 to 500 percent are equal at 51.47%. Percent 0 and 50 are the only rows that change the pixel count in this sweep.
Your call: if a tool offers one strength slider and calls it percent, ask what happens above 100. In this run the count of changed pixels froze while the file kept changing. Whether the extra amplitude helped your subject is a judgement for you, not a number this batch can supply.

5. Threshold does the work the strength slider appears to do

Threshold is the minimum difference before a pixel is touched. At radius 2 and percent 150, threshold 0 changed 6,176,385 pixels. Threshold 50 changed 443,288, a factor of 13.93. Every step in between reduced the count: the full sweep is below.

ThresholdPixels changedShareOutput bytes
06,176,38551.47%15,198,110
23,831,68931.931%13,904,849
53,116,04325.967%13,449,883
102,485,03220.709%13,164,264
201,680,03914.0%12,887,536
50443,2883.694%12,678,562

Same 4000 x 3000 file, radius 2, percent 150. Moving threshold changes which pixels are eligible before any amplitude is applied, which is why it changes the count where percent above 100 did not.

Threshold is the control that bites threshold 0 51.47% threshold 2 31.931% threshold 5 25.967% threshold 10 20.709% threshold 20 14.0% threshold 50 3.694%
Changed-pixel share against threshold, from 51.47% at 0 down to 3.694% at 50. Scaled to 100 percent, not to the largest observed value.

6. The radius curve and the clipping cost

With percent 150 and threshold 0, radius 0 left every pixel untouched but still wrote a 12,661,759-byte PNG. From there the changed share climbed to 37.421% at radius 1, 51.47% at radius 2 and 64.082% at radius 50. Output bytes did not climb with it: the radius 50 PNG was 13,329,050 bytes, only 667,291 bytes above the radius 0 re-encode, because a smoother result compresses differently.

RadiusPixels changedShareOutput bytes
000.0%12,661,759
14,490,46237.421%14,570,433
26,176,38551.47%15,198,110
36,657,04555.475%14,952,748
57,057,99258.817%14,532,653
97,353,83861.282%14,098,617
157,543,59162.863%13,738,142
257,689,78164.082%13,329,050
507,817,60565.147%12,752,363

Sharpening also pushes channel values into the ends of the range. Counting individual colour-channel samples rather than whole pixels, the landscape photo went from 13,322,665 to 14,300,481 samples at zero (a gain of 977,816) and from 224,922 to 1,462,685 samples at 255 (a gain of 1,237,763). The small icon gained 2,843 black and 2,562 white samples on a 128 x 128 frame.

FileZero beforeZero after255 before255 after
photo_landscape.jpg13,322,66514,300,481224,9221,462,685
small_icon.png16,81119,654682,630
logo_alpha.png1,340,3401,343,866017,160
gray_8bit.jpg12,347,32813,120,6891,8151,324,713

Counts are of channel samples across red, green and blue, so one pixel can contribute up to three. Clipping is a measured boundary effect, not a verdict on whether the image looks better.

7. What happened to frames, depth and tags

Conversion to RGBA and a one-still filter changed four file properties that a batch tool rarely reports. The six-frame GIF came back with one frame. The 16-bit grayscale PNG passed through RGBA before filtering, which caps it at 8-bit depth. The orientation tag on the portrait JPEG was not carried into the PNG output. The transparent logo kept its alpha channel: no alpha values changed, while its RGB edges were clipped.

FileBeforeAfterNote
animation.gif6 frames1 frameanimation removed
gray_16bit.png16-bit, 256 levels in 8-bit view145 levelsconverted through RGBA before filtering
exif_orient6.jpgorientation 6no tagtag not carried into the PNG output
logo_alpha.png960,000 px, transparent regions0 alpha values changedalpha channel preserved, RGB edges clipped
Your call: if your workflow needs animation, 16-bit depth or an orientation tag, this filter-and-PNG path drops or reduces them. Decide whether to keep originals alongside the outputs; the measurement only reports what changed.

8. Bytes and repeatability

Eleven PNG outputs totalled 72,699,847 bytes against 20,934,926 bytes of input, or 3.473 times the source. The spread is wide by file: the landscape JPEG grew from 2,403,704 to 15,198,110 bytes, 6.323 times, while the 16-bit grayscale PNG fell from 12,042 to 3,433 bytes, 0.285 times. PNG is lossless, so the filter's extra detail costs bytes where there is detail to encode.

Two independent full runs of the same 11 files each wrote the same 11 PNGs. Both flat trees hashed to SHA-256 e6928e245c3195da5469946ec81ff044235932dc42424ad97a0ce710cb6cafa5. Determinism here means identical bytes, not identical speed: one full pass took 34,437 ms on this machine, and the two-run repeat check took 33,704 ms in total.

See all measured guides

Frequently asked questions

Can I sharpen multiple images at once?

Yes. One radius-2 unsharp-mask pass was applied to 12 files in this run; 11 decoded and each produced one output. Across those 11 it changed 31,934,946 of 63,016,384 pixels, 50.677% of the batch. The share was not uniform: it ran from 0.386% on gray_16bit.png to 66.62% on small_icon.png, a 172.6-fold spread. One 1,200-byte truncated file failed and returned no output.

Will sharpening reduce image quality?

Sharpening can push channel values to the ends. On photo_landscape.jpg, zero-valued colour-channel samples rose from 13,322,665 to 14,300,481 (a gain of 977,816), and 255-valued samples rose from 224,922 to 1,462,685 (a gain of 1,237,763). Those are clipped samples, not a quality score. Whether the result looks better is a judgement this measurement cannot make for you.

Can I adjust the sharpening strength?

The filter used here exposes three controls: radius, percent and threshold. Sweeping percent at radius 2 and threshold 0 gave a surprise. At 0 percent nothing changed; at 50 percent 4,418,861 pixels changed; but at 100, 150, 200, 300 and 500 percent the count was identical, 6,176,385. Moving percent above 100 changed the amplitude and the byte size, not how many pixels were altered. The threshold control did far more work.

Can I sharpen GIF images online?

The six-frame GIF in this batch decoded, but the unsharp-mask pass works on one still image. The source carried 6 frames; the saved PNG carried 1. It changed 2.0% of its 120,000 pixels and wrote 1,307 bytes. Animation is not preserved by this path.

What is image sharpening and how does it work?

The unsharp mask blurs a copy of the image, compares it with the original and amplifies the difference at edges. In this run one pass at radius 2, percent 150 and threshold 0 changed 31,934,946 of 63,016,384 decoded pixels. The library documents radius as the standard deviation of the Gaussian kernel; the number is a width, not a strength dial.

Will sharpening my image affect its quality or introduce noise?

Two things to watch. First, threshold: at radius 2 and percent 150, threshold 0 changed 6,176,385 pixels while threshold 50 changed 443,288, a 13.93-fold reduction. Second, output bytes: 11 outputs totalled 72,699,847 bytes against 20,934,926 bytes of input, 3.473 times larger, because every output was written as lossless PNG. Neither figure tells you whether your subject gained detail or gained noise.

Is the sharpening process reversible?

Not from the saved file. In this run the 2000 x 1500 JPEG carried an EXIF orientation tag of 6; the output PNG reopened from disk had no orientation tag. The 16-bit grayscale source was converted through RGBA before filtering. Keep your originals if you may want a different radius later.

How do I sharpen an image online for free?

This page does not upload or sell anything; it measures what one local sharpening pass does. For a browser tool, check whether the work runs on your device and what it does to frames and tags before you commit a batch. In this run the whole 11-file pass wrote 72,699,847 bytes of PNG in 34,437 ms on one machine. A different tool or folder will produce different numbers.

Why does one strength number change pixels differently across a batch?

Because the control interacts with content. A radius of 2 with the other settings fixed changed 0.386% on gray_16bit.png but 66.62% on small_icon.png. The 16-bit grayscale file started with few levels to amplify; the small icon had sharp edges everywhere. The batch total of 50.677% hides both extremes.