News for hackers. Stuff that matters.
Re:Image Dithering: Eleven Algorithms and Source Code by anonfunction on Friday October 06, 2017 @12:56AM (#15414529)
I was showing coworkers an example of the Floyd Steinberg algorithm today.

The following images have the same amount of colors, namely black and white.

https://i.imgur.com/stQUl5E.gif

https://i.imgur.com/mw8IX9N.gif

Source image:

https://i.imgur.com/diR72k2.jpg

Re:Image Dithering: Eleven Algorithms and Source Code by djmips on Friday October 06, 2017 @02:13AM (#15414787)
My suspicion is that you didn't handle the gamma correctly as mentioned in another comment.
Re:Image Dithering: Eleven Algorithms and Source Code by leni536 on Friday October 06, 2017 @08:31AM (#15416263)
https://imgur.com/595mX6m

Done with imageworsener[1].

    imagew -cc 2 -dither f -grayscale diR72k2.jpg diR72k2_dither.png
[1] http://entropymine.com/imageworsener/
Re:Image Dithering: Eleven Algorithms and Source Code by Matumio on Friday October 06, 2017 @03:06AM (#15414956)
Indeed, the dithered image looks way too bright. It should be converted from sRGB gamma to linear light before dithering to black/white. Also, will need more than 8bits per channel if you hold the linear image as an intermediate result, otherwise you get posterization in the dark areas before the dithering even starts.
Re:Image Dithering: Eleven Algorithms and Source Code by nitrogen on Friday October 06, 2017 @01:29AM (#15414621)
Is there any way to get the imgur mobile site to load the full res version?
Re:Image Dithering: Eleven Algorithms and Source Code by Terretta on Friday October 06, 2017 @05:52AM (#15415559)
On Safari for iOS, long-press the reload icon in URL bar and choose “Request Desktop Site”.

You’ll get a diff layout that shows the GIF.