frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Why Tiny JPEGs Look Different in Chrome

https://guillaumetech.github.io/posts/jpg-scaling-chrome/
79•gutechh•1h ago

Comments

PetitPrince•44m ago
So is Firefox doing a full rendering then scaling, or is it also doing a partial rendering but in another way? You're only telling one side of the story.
the8472•39m ago
Firefox doesn't decode the image into a full-resolution buffer and then downscale either, instead it does a streaming decode and applies downscaling on the fly. They call it downscale-during-decode[0]. I guess it doesn't do partial decoding of the 8x8 blocks though.

[0] https://bugzilla.mozilla.org/show_bug.cgi?id=1045926

gutechh•28m ago
Ah! It took a fair bit of digging to get there. Maybe I'll look into the firefox pipeline and make another post. In the mean time if anyone know the internals and how firefox does it, I'm eager to hear about it!
debazel•40m ago
Chrome and Firefox uses two different scaling algorithms that is probably contributing a lot more to this difference. Chrome is more blurry in general while Firefox is sharper but has slightly more ringing artifacts. Personally I prefer the Firefox version.
gutechh•31m ago
I do prefer the firefox look too! I'd be curious to hear your take on what could be the root cause of this. I'm far from a image rendering expert. But I remember when inspecting the edges and curves of the images in a DCT visualizer they were all in the AC coefficients which is what led me to the conclusion of the post.
aidenn0•27m ago
I've noticed that a lot of objective measures of image quality prefer blur to ringing, but many subjective measurements tilt the other way.
ryandamm•18m ago
That's why you should prefer LPIPS to PSNR. LPIPS is a learned metric that uses subjective human input.

That said, it's limited due to the training set, iirc. So we still use PSNR regularly — it's an easily-understood metric with widely-understood limitations, which is in practice not too bad. Devil you know, etc.

smallnix•37m ago
Would be nifty if they only did that partial scaling when there's little memory available.
gutechh•24m ago
ahah, yeah surprising considering how Chrome is RAM hungry, 20mb isn't that much of a win. On another end when trying to reproduce the glitch, it was quite hard! basically invisible on photos and not all icons were affected. So it does work very well. It was kind of our fault to use a jpg for an icon ahah.
muizelaar•30m ago
The work for decompressing at a lower scale in Firefox is happening here: https://bugzilla.mozilla.org/show_bug.cgi?id=2033250
gutechh•8m ago
Thanks, I knew it was much more efficient, but seeing the numbers in the benchmarks make me appreciate this "trick" even more!
bluedino•19m ago
Reminds me of digging into HTML Canvas scaling, especially when HiDPI Macs came out.

License Plate Reader Searches Should Require a Warrant

https://andrewpwheeler.com/2026/08/12/license-plate-reader-searches-should-require-a-warrant/
136•apwheele•47m ago•48 comments

2026 Eclipse Webcams

https://jonty.github.io/2026_eclipse_webcams/
311•zoenolan•3h ago•72 comments

Obituary: AmigaDOS developer Dr. Tim King has passed away

https://amiga-news.de/en/news/AN-2026-08-00070-EN.html
67•doener•1h ago•13 comments

Tailscale Traces Database Corruption to 16y/o SQLite WAL-Reset Bug

https://tailscale.com/blog/sqlite-wal-reset-bug
81•ropbear•1h ago•8 comments

Someone is running mass vulnerability scans, spoofing AI bots like ClaudeBot

https://knownagents.com/insights
46•gavinhking•1h ago•12 comments

Why Tiny JPEGs Look Different in Chrome

https://guillaumetech.github.io/posts/jpg-scaling-chrome/
79•gutechh•1h ago•12 comments

GiveCampus (YC S15) Is Hiring Engineering Managers

https://job-boards.greenhouse.io/givecampus/jobs/4112793009
1•mkong1•35m ago

AI is removing the middle class of software engineering

https://blog.florianherrengt.com/ai-removing-middle-class-software-engineering.html
182•florianherrengt•2h ago•150 comments

What sort of maths are LLMs good at?

https://gowers.wordpress.com/2026/08/12/what-sort-of-maths-are-llms-good-at/
171•ColinWright•5h ago•75 comments

Automatic1111 for Apple metal, 40% speed up sd1.5

https://therad.ninja/from-8-10-seconds-to-3-7-teaching-automatic1111-to-speak-metal-on-an-m3-pro/
26•dmikey831•1h ago•5 comments

My Agent Setup

https://chad.cm/posts/2026-8-11-my-agent-setup
35•carimura•1h ago•15 comments

Show HN: Woxi - Open-source Mathematica / Wolfram Language reimplementation

https://woxi.ad-si.com
171•adius•5h ago•23 comments

Only 2.6% of the most visited websites have fully valid HTML

https://validatehtml.com/html-error-statistics
31•theo_dcrx•1h ago•36 comments

Delphi 13 Community Edition Is Now Available

https://blogs.embarcadero.com/delphi-13-community-edition-is-now-available/
90•layer8•4h ago•69 comments

Shade Map

https://shademap.app
26•fredley•2h ago•6 comments

5th Heat Dome Expands Across Europe: 40°C+ Target Western and Central Europe

https://www.severe-weather.eu/global-weather/excessive-heat-dome-heatwave-western-europe-mid-augu...
68•robtherobber•3h ago•50 comments

High-Res Photo Shows Sand-Capped Butte Rising from Mars Plain of Polygons

https://petapixel.com/2026/08/04/amazing-high-res-photo-shows-a-butte-rising-from-mars/
104•bookofjoe•6d ago•7 comments

Bigos (Polish Hunter's Stew) Recipe Builder

https://chefsbinge.com/bigos-recipe-builder/
43•doublepg23•5d ago•15 comments

uBlock Origin Is Giving Up the Fight to Keep Ads Off Facebook

https://digitalescapetools.com/2026/08/ublock-origin-stops-chasing-facebook-ads.html
43•Markoff•4h ago•27 comments

Launch HN: Discovered Materials (YC P26) – AI agents to discover new materials

https://discoveredmaterials.com/research/
47•advaith08•7h ago•13 comments

Qwen/Qwen3.8-2.4T-A95B

https://huggingface.co/Qwen/Qwen3.8-2.4T-A95B
33•Philpax•29m ago•1 comments

The Ultimate Horse

https://worksinprogress.co/issue/the-ultimate-horse/
21•Petiver•20h ago•3 comments

Facebook is paying controversial creators to produce rage-bait content

https://www.abc.net.au/news/2026-08-06/ragebait-how-facebook-is-paying-controversial-creators/106...
413•robtherobber•5h ago•268 comments

The hardest working font in Manhattan (2025)

https://aresluna.org/the-hardest-working-font-in-manhattan/
316•dcminter•5d ago•49 comments

Hax – a minimalist, terminal-native coding agent written in C

https://usehax.dev/
4•OleksandrC•47m ago•2 comments

Worms: The Future of Yesterday's Worms Today

https://worm.net/
123•doener•5d ago•44 comments

ArenaAllocators don't play nicely with ArrayLists

https://www.openmymind.net/Arena-Allocators-and-ArrayLists/
6•ibobev•5d ago•1 comments

German advocacy group lodges criminal complaint over Meta AI glasses

https://www.reuters.com/legal/government/german-advocacy-group-lodges-criminal-complaint-over-met...
37•tartoran•1h ago•12 comments

Commodore 8-Bit 5¼" Disk Images

https://www.masswerk.at/nowgobang/2026/commodore-disk-images
10•masswerk•2h ago•0 comments

I built a jellyfish laboratory in my backyard [video]

https://www.youtube.com/watch?v=MILwxfQBm6Q
32•surprisetalk•1w ago•3 comments