Re:Image Processing 101
by vanderZwan on Friday March 11, 2016 @07:35AM
(#11266213)
So I just spent half an hour googling for libraries that could help with this. Chroma.js seems to be a pretty nice option for dealing with this issue in a web context:
http://gka.github.io/chroma.js/
The person behind is has some nice blog posts on color generation too:
The only issue that I see is that the library is focused on translating data to colours. The problems with blurring and downscaling that you mentioned go the other way: the colours are the data.
Like open this image in your browser or in your favorite image viewer and scale it down to 50%: http://www.4p8.com/eric.brasseur/gamma-1.0-or-2.2.png
[1] http://www.4p8.com/eric.brasseur/gamma.html