Top all-time · #2553
Eric Brasseur
Personal blog · 4p8.com/eric.brasseurprogrammingscience
Eric Brasseur's personal blog at 4p8.com covers programming and science. Since 2008, 30 different Hacker News readers have linked it 41 times, most often “All image-editing software gets scaling wrong”. No feed was found, so read it on the site itself.
Sometimes recommended · 7 of 30 sampled comments recommend it?
Why HN links it
HN readers link Eric Brasseur's site mainly for his gamma-error article on image scaling, with test images showing that software downscales images incorrectly. The site also hosts C++ tutorials.
Summarised by Claude from a sample of 30 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Most-linked posts?
- All image-editing software gets scaling wrong20 people · 22 mentions · first linked 2008-01-27
- /eric.brasseur/gamma_dalai_lama.html3 people · 3 mentions · first linked 2010-02-22
- /eric.brasseur/gamma-1.0-or-2.2.png2 people · 3 mentions · first linked 2015-02-13
- /eric.brasseur/cppcen.html2 people · 2 mentions · first linked 2012-05-26
What Hacker News says?
Enough has been said about incorrect gamma (this and [0]), now I think it's high time to bash the software of the world for incorrect downscaling (e.g. [1]). It has much more visible effects, and has real consequences for computer vision algorithms. In the course on computer vision in my university (which I help teaching) we teach this stuff to make students understand physics, but at the end of the lecture I'd alwa…
Comment linking /eric.brasseur/gamma.html
on “What every coder should know about gamma”Submitted All image-editing software gets scaling wrong as a story · 124 points
HN discussionNope, world doesn't end, but scaled images look wrong, some more than others. For more examples see http://www.4p8.com/eric.brasseur/gamma.html
Comment linking /eric.brasseur/gamma.html
on “What every coder should know about gamma”Submitted Gamma error in picture scaling (2007) as a story · 113 points
HN discussionI know that this is an introduction, but I wish there was a warning about the use of improper color spaces for different tasks (like using sRGB or any nonlinear colorspace for downscaling images, blurring or Phong shading). A warning about the existence of different colorspaces and their different use cases would be enough in an introductionary write up. It's still an issue in most of today's software [1]. Like open…
Comment linking /eric.brasseur/gamma.html
on “Image Processing 101”Submitted Widespread gamma error in image scaling algorithms (2007) as a story · 84 points
HN discussionHmm... I'm quite familiar with gamma correction. For those who are not, I recently did an "Explain Like I'm Five" http://www.reddit.com/r/explainlikeimfive/comments/1aeuyb/el... But, my understanding is that for an image displayed 1-1 pixel-to-screen there is no intermediate math going on. So, there shouldn't be any opportunity for non-gamma-correct calculations to screw up the output. Here's a nice example of non-g…
Comment linking /eric.brasseur/gamma.html
on “Why does this png display differently in Chrome/Firefox than in Safari/IE?”Submitted Gamma error in picture scaling as a story · 22 points
HN discussion> If the images have obvious rectangular borders (due to the color specified in the bKGD chunk), the browser is broken. Well, Chrome is still broken for some of these images on Linux. Not surprising though, it also screws up resizing images: http://www.4p8.com/eric.brasseur/gamma.html I with they would fix these things before worrying about wide gamut
Comment linking /eric.brasseur/gamma.html
on “Improving Color on the Web”Submitted Gamma error in picture scaling (2007) as a story · 3 points
HN discussionYou may be interested in this article that was on hacker news a while ago: http://www.4p8.com/eric.brasseur/gamma.html And the hacker news discussion: http://news.ycombinator.com/item?id=1523991
Comment linking /eric.brasseur/gamma.html
on “Monroe or Einstein? Instant eyesight check.”Submitted Lew - a graphics programming language along the veins of Processing based on Lua as a story · 2 points
HN discussionI use and love it, but I sincerely wish they'd change the name and the UI. I'm a programmer, but even I didn't realize how much they were hiding in context menus at first until I had to search online to find documentation on how to do the few simple things I can do. The multi-window thing I really don't have much of a problem with, though, even if it was hard to get used to at first. I don't have much use for the hi…
Comment linking /eric.brasseur/gamma.html
on “Why GIMP is Inadequate”Submitted Eric Brasseur's Articles as a story · 1 points
HN discussionPart of the reason rescaled images look dim and blurry is because rescaling software usually assumes gamma 1.0 instead of 2.2: http://www.4p8.com/eric.brasseur/gamma.html There are many more good essays on image rescaling here: http://entropymine.com/imageworsener/
Comment linking /eric.brasseur/gamma.html
on “Using ImageMagick to make sharp web-sized photographs”Fixed url, needs the html extension: http://www.4p8.com/eric.brasseur/gamma.html
Comment linking /eric.brasseur/gamma.html
on “How web browsers resize images”I read this Eric's article "Gamma error in picture scaling" 6 years ago. Sadly, FireFox still sucks... http://www.4p8.com/eric.brasseur/gamma.htm
Comment linking /eric.brasseur/gamma.htm
on “How web browsers resize images”Interesting that Google's Chrome 5.0 doesn't display the browser examples correctly, but the browser on my Android phone does. Link to examples: http://www.4p8.com/eric.brasseur/gamma_dalai_lama.html
Comment linking /eric.brasseur/gamma_dalai_lama.html
on “All image-editing software gets scaling wrong”127,127,127 feels dark. The explanation is in the article: http://www.4p8.com/eric.brasseur/gamma.html#explanation Basically, if you have a test image which consists of alternating black and white, it should have the same perceived brightness when you scale it down - but when you scale it down, the software needs to average out the black and white. If it does a simple arithmetic average, it'll probably choose 127,12…
Comment linking /eric.brasseur/gamma.html
on “All image-editing software gets scaling wrong”Safari 5.0 on OS X gets it wrong ( http://www.4p8.com/eric.brasseur/gamma_dalai_lama.html ); just a gray image with subtle, barely visible pink and green contours.
Comment linking /eric.brasseur/gamma_dalai_lama.html
on “All image-editing software gets scaling wrong”If you care about color, you should not miss "The importance of being linear" http://http.developer.nvidia.com/GPUGems3/gpugems3_ch24.html and corresponding discussion on wrong gamma in a variety of programs http://www.4p8.com/eric.brasseur/gamma.html The prettiest gradients won't look good if the output color doesn't match the displays gamma.
Comment linking /eric.brasseur/gamma.html
on “ Why Should Engineers and Scientists Be Worried About Color? (1996)”>the only color system produced entirely from measurements of human color perception What is CIE LAB then? While Wikipedia states that it was influenced by the Munsell color system, I don't think it was directly derived from it. Also I would argue that it is in common use. On the other hand these measurements measured the local distance between colors (based on distinguishability) but nothing guarantees that the spa…
Comment linking /eric.brasseur/gamma-1.0-or-2.2.png
on “Digital colours and digital photography”Although the article is dated 2007, the error it describes is still present in every implementation I've tested. There's a test page for browsers at: http://www.4p8.com/eric.brasseur/gamma_dalai_lama.html
Comment linking /eric.brasseur/gamma_dalai_lama.html
on “Widespread gamma error in image scaling algorithms (2007)”Here's something you might find interesting Gamma error in picture scaling http://www.4p8.com/eric.brasseur/gamma.html
Comment linking /eric.brasseur/gamma.html
on “Ask HN: What are you working on tonight?”One small issue is that it doesn't correct for gamma. Most browsers don't even do it properly, so it isn't a very important issue at all. Demo: http://firesize.com/100x100/g_center/http://www.4p8.com/eric... More info: http://www.4p8.com/eric.brasseur/gamma.html
Comment linking /eric.brasseur/gamma.html
on “Show HN: Firesize – On-the-fly image resizing, no code required”Nice. Everybody who programs something that involves calculations with colours in any way should learn some colour science. It's not hard in any way but lot's of stuff are missed in most applications. One of the most missed feature is the lack of using a linear colourspace when it is necessary, like scaling (especially scaling down) images [1] or calculating physical models (like the Phong model [2]) that implicitly…
Comment linking /eric.brasseur/gamma-1.0-or-2.2.png
on “Colour Science for Python”A tricky thing w/r/t browsers is that they are often really crappy at figuring out what color space a PNG image is supposed to be in. I think they often intentionally strip out the color space info from PNG images for the sake of helping PNG images blend smoothly into CSS / Flash / etc., for which they also don’t do correct color management. [The CSS spec says that colors should be interpreted as sRGB, but browsers…
Comment linking /eric.brasseur/gamma-1.0-or-2.2.png
on “The SRGB Learning Curve”IMO the worst offenders are image shrinking features in many applications. Open this in your favorite browser/image viewer then shrink it to 50%: http://www.4p8.com/eric.brasseur/gamma-1.0-or-2.2.png I tested it right now in chromium 46 and it still doesn't scale it correctly. Last time I checked Firefox doesn't do it better. An other good article about this problem: http://www.4p8.com/eric.brasseur/gamma.html There…
Comment linking /eric.brasseur/gamma.html
on “The SRGB Learning Curve”Another great article highlighting how often software gets it wrong is here: http://www.4p8.com/eric.brasseur/gamma.html
Comment linking /eric.brasseur/gamma.html
on “The SRGB Learning Curve”My acid test for resizing (downscaling to be more precise): http://www.4p8.com/eric.brasseur/gamma-1.0-or-2.2.png The resize.ly version (2x downscaled): http://resize.ly/256x128/http://www.4p8.com/eric.brasseur/ga... It fails horribly for me. Most software fails too (try to downscale the original in your favorite browser!), but this somehow ruins the base background gray too somehow. Sorry for the test image being a…
Comment linking /eric.brasseur/gamma.html
on “Resize.ly – Images resized, responsive, and retina ready”