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.
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.
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.
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.
| File | Size | Pixels | Changed | Mean shift | Output bytes |
|---|---|---|---|---|---|
| photo_landscape.jpg | 4000 x 3000 | 12,000,000 | 51.47% | 7.32 | 15,198,110 |
| photo_portrait.jpg | 3000 x 4000 | 12,000,000 | 51.809% | 7.36 | 15,216,489 |
| photo_square.png | 3000 x 3000 | 9,000,000 | 64.985% | 9.57 | 14,402,109 |
| duplicate_photo.jpg | 3000 x 4000 | 12,000,000 | 51.809% | 7.36 | 15,216,489 |
| exif_orient6.jpg | 2000 x 1500 | 3,000,000 | 53.937% | 8.11 | 3,905,203 |
| screenshot.webp | 1600 x 900 | 1,440,000 | 56.942% | 8.36 | 1,809,949 |
| logo_alpha.png | 1200 x 800 | 960,000 | 2.629% | 0.41 | 21,681 |
| gray_16bit.png | 800 x 600 | 480,000 | 0.386% | 0.13 | 3,433 |
| gray_8bit.jpg | 3000 x 4000 | 12,000,000 | 41.644% | 7.93 | 6,896,911 |
| animation.gif | 400 x 300 | 120,000 | 2.0% | 0.64 | 1,307 |
| small_icon.png | 128 x 128 | 16,384 | 66.62% | 12.23 | 28,166 |
| broken.jpg | failed 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.
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.
| Percent | Pixels changed | Share | Output bytes |
|---|---|---|---|
| 0 | 0 | 0.0% | 12,661,759 |
| 50 | 4,418,861 | 36.824% | 13,862,225 |
| 100 | 6,176,385 | 51.47% | 14,898,159 |
| 150 | 6,176,385 | 51.47% | 15,198,110 |
| 200 | 6,176,385 | 51.47% | 14,850,763 |
| 300 | 6,176,385 | 51.47% | 14,397,622 |
| 500 | 6,176,385 | 51.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.
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.
| Threshold | Pixels changed | Share | Output bytes |
|---|---|---|---|
| 0 | 6,176,385 | 51.47% | 15,198,110 |
| 2 | 3,831,689 | 31.931% | 13,904,849 |
| 5 | 3,116,043 | 25.967% | 13,449,883 |
| 10 | 2,485,032 | 20.709% | 13,164,264 |
| 20 | 1,680,039 | 14.0% | 12,887,536 |
| 50 | 443,288 | 3.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.
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.
| Radius | Pixels changed | Share | Output bytes |
|---|---|---|---|
| 0 | 0 | 0.0% | 12,661,759 |
| 1 | 4,490,462 | 37.421% | 14,570,433 |
| 2 | 6,176,385 | 51.47% | 15,198,110 |
| 3 | 6,657,045 | 55.475% | 14,952,748 |
| 5 | 7,057,992 | 58.817% | 14,532,653 |
| 9 | 7,353,838 | 61.282% | 14,098,617 |
| 15 | 7,543,591 | 62.863% | 13,738,142 |
| 25 | 7,689,781 | 64.082% | 13,329,050 |
| 50 | 7,817,605 | 65.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.
| File | Zero before | Zero after | 255 before | 255 after |
|---|---|---|---|---|
| photo_landscape.jpg | 13,322,665 | 14,300,481 | 224,922 | 1,462,685 |
| small_icon.png | 16,811 | 19,654 | 68 | 2,630 |
| logo_alpha.png | 1,340,340 | 1,343,866 | 0 | 17,160 |
| gray_8bit.jpg | 12,347,328 | 13,120,689 | 1,815 | 1,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.
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.
| File | Before | After | Note |
|---|---|---|---|
| animation.gif | 6 frames | 1 frame | animation removed |
| gray_16bit.png | 16-bit, 256 levels in 8-bit view | 145 levels | converted through RGBA before filtering |
| exif_orient6.jpg | orientation 6 | no tag | tag not carried into the PNG output |
| logo_alpha.png | 960,000 px, transparent regions | 0 alpha values changed | alpha channel preserved, RGB edges clipped |
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.