HN Hall of Fame Weekly email

All image-editing software gets scaling wrong

www.4p8.com Essays & writing Essays & articles Computer science Candidate
Screenshot of www.4p8.com captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 4 calendar years, with breakout response in 2 of them.

submissions
5
submitters
5
observed span
2008–2015
peak thread · 52 comments
124 pts
latest 20+ return · 2014-08-21
113 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

It's not that being gamma-aware is "right" and most software does it "wrong" for speed. In many contexts, RGB values don't have gamma associated with them, just as they don't have ColorSync profiles or whatnot, or if they have one, it was just invented at some stage of processing. (Using the current screen gamma would be pretty arbitrary for an image editor.) Trying to "convert" between different gamma values during processing likely will do more harm than good if your…

I wrote the Lanczos3 scaler that Picasa uses (about 14 years ago!), and it doesn't (by default) correct for gamma. For most images & kernels, you can get by with doing math in about 31 bits total precision (a bit for underflow clamping), so that's the magic speed improvement from ignoring gamma on old 32-bit architectures. If you gamma-correct, your sources will need to be 10-12 bpc after transformation, and you'll need >32 bits of integer precision for large kernels…

herf·113-point thread·

The primary reason for this problem is twofold: 1. People writing image scaling libraries are big on speed. Many, like libswscale, are intended for realtime video playback on systems without graphics overlay acceleration. They contain truckloads of shortcuts to cheat wherever possible in the name of performance. 2. A "correct" method requires one of two things: A. Performing one LUT per input pixel to the tapfilter, plus one LUT per output pixel (see http://news.ycombinator.com/item?id=1142084). This completely…

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
2

100+ points or 50+ comments

Total points
346

reference only — not used in Hall rules or ranking

Total comments
107

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2008-01-27Gamma error in picture scalingnickb220
2010-02-22Widespread gamma error in image scaling algorithms (2007)jmillikin8423
2010-07-17All image-editing software gets scaling wrongFirst breakout · Best threadjoshwa12452
2014-08-21Gamma error in picture scaling (2007)Latest 20+ point returnbpierre11332
2015-12-24Gamma error in picture scaling (2007)fao_30