1952 posts
Random
Tuesday, March 10th, 2020 at 9:28 AM

I wanted to calculate entropy per 16x16 tile in this image. Someone suggested just using compression size as a proxy. So I used canvas toDataURL() and counted the characters. It works!

From: https://stackoverflow.com/a/45579688