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!
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!