Related, You can get an idea of what your browser display is doing in this shadertoy: https://www.shadertoy.com/view/Wd2yRt
Fwiw, the reason why wikipedis doesn't do this when rescaling images (or at least didn't years ago when i was working on image resizing code for wikipedia) is that to do that (with off the shelf software) required keeping the entire image in memory, which was a big no no. I mean, i guess it would be fine for small images, but then you're using two different algorithms depending on image size, which seems bad.
https://i.k8r.eu/i/F_XCMA
https://i.k8r.eu/F_XCMAm.png
https://i.k8r.eu/F_XCMAt.png
You just have to go into a linear colorspace and use an area filter.