News for hackers. Stuff that matters.
Re:Faking a JPEG by puttycat on Friday July 11, 2025 @10:01PM (#44538667)
> compression tends to increase the entropy of a bit stream.

Does it? Encryption increases entropy, but not sure about compression.

Re:Faking a JPEG by gregdeon on Friday July 11, 2025 @10:16PM (#44538745)
Yes: the reason why some data can be compressed is because many of its bits are predictable, meaning that it has low entropy per bit.
Re:Faking a JPEG by JCBird1012 on Friday July 11, 2025 @10:13PM (#44538728)
I can see what was meant with that statement. I do think compression increases Shannon entropy by virtue of it removing repeating patterns of data - Shannon entropy per byte of compressed data increases since it’s now more “random” - all the non-random patterns have been compressed out.

Total information entropy - no. The amount of information conveyed remains the same.

Re:Faking a JPEG by gary_0 on Saturday July 12, 2025 @04:10AM (#44540229)
Technically with lossy compression, the amount of information conveyed will likely change. It could even increase the amount of information of the decompressed image, for instance if you compress a cartoon with simple lines and colors, a lossy algorithm might introduce artifacts that appear as noise.