Menu

1 / 2

Your Upscaled JPEG Scores 62 dB Against a Buffer It Invented

DEV Community: computervision·celticgemini001·6 days ago
#fAwXdEJ7
#devtocomputervision#technology#devto#dev#q100
Long article (3515 words) — no AI summary yet.
Reading 0:00
15s threshold

A 4× upscale saved at quality 100 scored 62,21 dB against the buffer it came from. The same file, same bytes, same 106,9 KB, scored 46,58 dB against the photograph it was made from.

Nothing about the JPEG changed between those two measurements. The only variable was the picture I held up as the reference, and moving it cost 15,63 dB.

That gap is the whole subject of this article, and it explains a class of advice you have probably read: "upscale first, then export at high quality, because the file is big anyway." The byte saving is real. The quality claim attached to it usually is not.

The two yardsticks, and why only one of them is about your picture

When you save a JPEG and then measure PSNR, the obvious reference is the buffer you handed to the encoder:

PSNR( buffer_before_save , pixels_after_save )

Enter fullscreen mode

Exit fullscreen mode

Call this the arm-local score. It answers one question: how faithfully did the encoder reproduce what I gave it? That is a legitimate engineering question.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.