Every "my photo is blurry, should I upscale it" question hides three different problems, and an upscaler only fixes one of them. If you guess wrong, you pay for a 4× pass that makes the file eight times larger and the image no better — or worse, you pay for it and the result looks sharper at 100% while carrying artefacts that were never in the original.
This post is a diagnostic procedure, not a tool review. It comes out of a set of measurements I ran on seven photographs and one 96-frame clip, comparing a JPEG-compressed source against an uncompressed master of the same content, and comparing four resampling kernels across six down/up round-trips. Where I quote a number below, it came from a file in that measurement set; where I am reasoning rather than measuring, I say so.
The three softnesses
| What it looks like | What actually caused it | Can an upscaler recover it | What to do instead |
|---|---|---|---|
| Uniformly soft everywhere, no crisp edges anywhere, even in high-contrast regions | Optical: lens, focus, motion blur, or a scanner sampling below the print's real detail | Partly. General structure can be sharpened; the missing spatial frequencies were never captured, so anything the model draws there is invented | Sharpen, accept, or rescan at higher resolution if the original is physical |
| Sharp in places, blocky or ringing near edges, fine texture looks "dirty" rather than detailed | Compression. An 8×8 DCT grid threw the high frequencies away and left quantisation noise behind | No, and trying makes it worse. Upscaling magnifies the block boundaries along with everything else | Identify the grid, treat it, then consider whether upscaling is still worth it |
| Sharp but slightly "off", edges fine but tiny structures missing, colour fringing on boundaries | Resampling. The image was already resized — sometimes several times — through a kernel that discarded detail | No. Detail destroyed by resampling is gone; a second pass cannot un-ring the first | Go back to the largest original you still have |
The reason this matters is that the three failure modes respond to opposite treatments. Compression damage wants a low-pass step (deblocking). Optical softness wants a high-pass step (sharpening). Resampling damage wants nothing at all — you want to stop touching it and go find a better source. Apply the wrong one and you spend quality instead of buying it.
Measuring what a JPEG costs, at five quality levels
Start with the compression case, because it is the most common and the most measurable.
I took one 1080×1620 photograph, encoded it at five JPEG qualities (30, 50, 70, 85, 95), decoded it back, upscaled 2× with Lanczos, and compared the upscale against an upscale of the uncompressed original. Then I looked at two numbers inside the result: a detail ratio R, defined as the high-frequency energy in a narrow band across an 8-pixel boundary divided by the same measure in a band placed away from any boundary, and the mean grey-level step measured across that boundary.
| Source quality | R (seam ÷ clean detail) | Grey step at the seam | HF energy |
|---|---|---|---|
| q30 | 2.07 | 2.04 levels | 118.2 |
| q50 | 1.78 | 1.77 | 119.3 |
| q70 | 1.57 | 1.52 | 113.2 |
| q85 | 1.50 | 1.41 | 109.7 |
| q95 | 1.41 | 1.30 | 106.7 |
Read the R column carefully, because it is the whole argument. At R = 1 the seam is statistically indistinguishable from the photo's own texture — the compression grid has vanished. At q30 it is 2.07, meaning the boundary region carries roughly twice the high-frequency energy of clean texture. That excess is the block edge, and the upscaler faithfully reproduced it at double size. The visible seam in an upscaled JPEG is not an upscaler defect. It is the codec's signature, magnified.
The trend is monotone and it does not reach 1. Even q95 leaves R at 1.41. That is consistent with how JPEG works: the ITU-T T.81 recommendation quantises DCT coefficients against a table derived from a quality scale, and at any quality below lossless the 8×8 block boundaries are reconstructed from fewer bits than the interior, so a step at the boundary is expected rather than exceptional. You cannot encode your way out of it; you can only start from a better source or treat the grid.
That last column, HF energy, is the second half of the story and it moves the opposite way to R: as quality rises, R falls and HF energy also falls slightly. Lower HF energy at higher quality is not a contradiction — the high-frequency content that a low-quality encode leaves behind is largely noise, and it disappears as quantisation lightens. Which means an upscaler fed a q30 file is spending part of its capacity amplifying noise while simultaneously making the block grid more visible. Both effects are visible in the same image, and both are worse at lower quality.
Deciding whether the lost detail was resampling or compression
If you know the file was resized somewhere upstream — a screenshot, a chat app, a CMS that "helpfully" set a max width — then compression and resampling damage are present together and you need to know the split before choosing a fix.
I measured it by comparing the same upscale against two references: the JPEG-decoded source and a PNG of the same content that never touched the codec. The PSNR gap between those two references is the codec's contribution; the rest is resampling.
| Upscale factor | PSNR vs JPEG source | PSNR vs lossless PNG | Gap (codec cost) | Resample MSE | JPEG MSE | Codec share of total error |
|---|---|---|---|---|---|---|
| 2× | 31.19 dB | 31.93 dB | 0.74 dB | 41.72 | 49.42 | 15.6% |
| 3× | 27.73 dB | 28.18 dB | 0.45 dB | 98.78 | 109.56 | 9.8% |
| 4× | 26.73 dB | 27.13 dB | 0.40 dB | 125.89 | 138.10 | 8.0% |
Two things to take from this table. First, the codec's share of the total error shrinks as the upscale factor rises, from 15.6% at 2× to 8.0% at 4×. That is the opposite of the intuition most people have ("more zoom means more visible compression"). The absolute codec error is roughly constant; the resampling error grows much faster, so at 4× the dominant damage is no longer the JPEG at all — it is whatever resize happened before you got the file. Second, this is exactly why going bigger does not rescue a damaged file: you are amplifying the larger error term.
A related measurement, from the same clip, on where to place a fixed byte budget. The codec here is H.264; the x264 documentation on rate control is the reference for why bits-per-pixel, not bitrate, is the comparable quantity across resolutions:
| Encode order | Bits per pixel at the small size | PSNR vs the pristine master | Blockiness |
|---|---|---|---|
| 300 kbps at the small size, then upscale | 0.69 | 30.77 dB | 1.35 |
| Upscale first, then encode at 300 kbps | 0.17 | 27.75 dB | 1.65 |
| Upscale first, then encode at 1200 kbps (matched bits/pixel) | 0.69 | 32.12 dB | 1.27 |
| 700 kbps at the small size, then upscale | 1.60 | 32.59 dB | — |
The starved arm — upscaling and then squeezing the result — loses 3 dB and gains blockiness, for the same nominal order of magnitude of effort. Matched bits/pixel after the upscale recovers it (32.12 dB) but costs four times the bitrate to get there. Spending the bytes before the upscale is the cheaper route to the same quality, and that is a general principle worth keeping: the encode that matters is the one closest to the source.
The test you can run on any file in two minutes
Here is the procedure I would actually hand someone. It needs no special software — an image viewer, a crop tool that does not resample, and a way to view a 4× nearest-neighbour zoom are enough.
- Find a high-contrast boundary that should be perfectly straight — a window frame, a building edge, a horizon, a product's silhouette against a plain background. Avoid anything with intentional texture.
- Crop a 128×128 region centred on that boundary with no resizing. If your tool resamples the crop, the test is void; you have added the very defect you are measuring.
- Zoom 4× with nearest-neighbour interpolation (not smooth, not bilinear). Nearest-neighbour is the only zoom that shows you the pixels you actually have.
- Look at the edge profile, not the edge. A compression-damaged edge shows a periodic staircase at 8-pixel intervals, or a faint ringing echo an eighth of the block apart. A resampled edge shows a smooth 3–5 pixel ramp with no periodicity. An optically soft edge shows a similarly smooth ramp, but the noise in flat areas is smooth too — resampling removes grain, optics preserve it.
- Check the flat areas for grain. Grain is your control. If the flat areas are clean and smooth but the edges are ramped, the file was resampled. If flat areas still carry grain and the edges are ramped, the softness is optical.
Step 4 is the one people skip, and it is the decisive one: it turns a vague "this looks soft" into a periodic-versus-smooth judgement you can make in a couple of seconds.
I automated the grid detection part of this on the seven photographs, because eyeballing 8-pixel periodicity is harder than it sounds on a photo with real texture. The detector scores candidate phases by high-frequency energy aligned to a candidate grid; across crops with injected offsets of 0 to 14 pixels it recovered the true phase in every case, with scores of 1.7 and 3.2 on the two axes against a phase-0 noise floor near zero. The practical point is not the algorithm — it is that the grid has a phase, and a crop that happens to start on the grid looks different from one that does not. If you draw conclusions from a single crop without varying the offset, you can measure the crop instead of the file. That is the mistake that makes people conclude their photo is fine when it is not, or vice versa.
Why filtering first usually costs you
The intuitive fix for a blocky source is to blur or deblock it before upscaling: remove the grid, then enlarge what is left. I measured that, at two deblock strengths and two Gaussian radii, against a no-filter control.
| Pre-filter | PSNR vs clean reference | HF energy retained |
|---|---|---|
| none (control) | 31.19 dB | 119.3 |
| deblock, strength 0.5 | 30.34 dB | 108.7 |
| deblock, strength 1.0 | 28.83 dB | 106.9 |
| Gaussian σ = 0.6 | 29.05 dB | 70.3 |
| Gaussian σ = 1.0 | 26.68 dB | 44.0 |
Every filter lost. Not by a rounding error — the σ = 1.0 Gaussian gave up 4.5 dB and 63% of the high-frequency energy. The deblocking arms are more interesting because they improve SSIM at light strength (0.9788 at strength 0.5 versus 0.9785 for the control) while still losing 0.85 dB of PSNR. That divergence is real and it tells you what deblocking actually does: it makes the image more structurally similar to the reference at the cost of absolute fidelity, because it is removing a localised artefact and a global amount of detail in the same pass.
My conclusion is not "never deblock". It is that pre-filtering an image before upscaling is a trade with a measurable price, and the price is paid in the exact currency you were trying to buy. If the source is genuinely heavily compressed, a light deblock may still be the right call — but do it deliberately and check the result, because "clean it up first" is not free advice.
The quiet tax: round-trips
There is a second, less obvious resampling cost that has nothing to do with a single resize: repetition. Most real images have been through a resize pipeline several times — export, upload, thumbnail generation, a CMS re-encode — and each pass through a resampler is lossy.
I ran the same seven photos through 0, 1, 2, 5, 10 and 20 down-then-up cycles with four kernels and measured how much of the original detail (standard deviation against the truth) survived:
| Cycles | Nearest | Bilinear | Bicubic | Lanczos |
|---|---|---|---|---|
| 0 | 100% | 100% | 100% | 100% |
| 20 | 100% | 93.3% | 98.9% | — |
Nearest-neighbour is bit-exact at every cycle count — it is picking pixels, not averaging, so a down/up pair through it is a permutation and loses nothing (that is also why it looks terrible: it is not resampling, it is sampling). Bilinear loses 6.7% of the detail over 20 cycles and the loss is monotone, saturating around 93%. Bicubic is gentler at 1.1%.
The number that matters is not 6.7% in the abstract. It is that the loss is cumulative and silent. Six percent of contrast is not visible as a defect; it is visible as an image that "just doesn't pop" and that no amount of sharpening fixes convincingly, because sharpening reweights what is left rather than restoring what is gone. Twenty cycles is an extreme case — but five cycles costs bilinear about 2.5%, and five is entirely plausible for a file that has been through a phone's share sheet, a messaging app, a website's upload pipeline, a CDN's image resizer and a backup tool.
The practical rule: every resize is a generation, and every generation is a one-way door. If you have a choice between resizing once at the end and resizing twice along the way, resize once. If you are handed a file and can request a larger original, request it — the request costs nothing and a 2× larger original is worth more than any upscaler's 2× pass.
The maths of why resizing is lossy in the first place is a sampling theorem question, not a software question — the Wikipedia article on the Nyquist–Shannon sampling theorem covers the underlying argument, and the short version is that downsampling removes frequencies above the new Nyquist limit and no interpolator can put them back.
Where upscaling actually earns its place
Given all of the above, the honest summary is narrow. Upscaling earns its place when:
- The source is clean — light or no compression, and as close to the original capture as you can get.
- The softness is optical or structural rather than a codec artefact, so there is real low-frequency information to build on.
- The output has a purpose that tolerates synthesis: a print at viewing distance, a hero image displayed at 50%, a video upscaled for a 4K screen where the viewer is 2.5 metres away. It does not earn its place for forensic work, for text you need to read, or for anything where a plausible invention is worse than visible blur.
- You can compare at the intended size, not at 100%. Almost every "upscaling made it worse" report I have seen comes from judging a 4K output on a monitor that shows a quarter of it at a time.
And it does not earn its place when the file is heavily compressed, when it has been resized twice already, or when the thing you actually want back is text and thin structures — the categories where the model is guessing hardest and the eye is most unforgiving.
The CTA, and a way to check me
I ran these measurements as part of evaluating UpgoLAB's browser upscaler, which does 2× and 4× on images and short video server-side with no install and no GPU on your machine — free during its launch period. What I would ask of it, and of any upscaler, is this: feed it the cleanest version of your file you have, and compare the output at the size you will actually display it. The tool is not the variable. The input is.
If you want to see the spatial half of the problem before you commit, this 28-second demo runs the same before/after across five presets, on the product's own output rather than a hand-picked example:
A video is also the wrong artefact to judge this class of defect from, for a reason worth stating: a still frame shows you what a preset does spatially and hides what it does temporally. A per-frame upscaler optimises each frame independently, so the frames can each be excellent and the sequence still shiver — edges crawling, texture boiling. Judge motion by playing the clip, never by scrubbing it.
A short decision list
Print this out and stick it next to your monitor, or don't; it is four lines.
- Is there periodicity at 8 pixels? You have compression damage. Do not upscale hoping to fix it; treat it lightly or start from a better source.
- Is the flat area grain-free but the edges ramped? You have resampling damage. Go find a larger original before doing anything else.
- Is it uniformly soft with grain intact? This is the case upscaling is for. Use a natural or texture-preserving preset, not the sharpest one, and check at display size.
- Have you already resized it once? Every additional resize costs contrast you cannot get back. Do the remaining work in one pass.
None of these require trusting a benchmark — mine or anyone's. They require one 128×128 crop, a 4× nearest-neighbour zoom, and about two minutes. That is a much better use of the first two minutes than an upscale you might not have needed.




Top comments (0)