this post was submitted on 20 Sep 2025
615 points (82.7% liked)
Programmer Humor
26650 readers
1965 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If you screenshot computer/phone interfaces (text, buttons, lots of flat colors with adjacent pixels the exact same color), the default PNG algorithm does a great job of keeping the file size small. If you screenshot a photograph, though, the PNG algorithm makes the file size huge, because it's just really poorly optimized for re-encoding images that are already JPG.
I took a screenshot of this page
(Screenshot removed because it takes forever to load and is not interesting enough to waste bandwidth on)
I am connected to a 4K monitor and this picture is also at 3775 × 2119. The total file size:
12.1 MB
Still a pretty limited palette, everyone wearing the same color shirts.
PNG tends to fail hard with textures. For example, my preferred theme in my chess app, which has some wood grain textures, generates huge screenshot file sizes (2MB), whereas the default might be less than 10% as large. Similarly, when I screenshot this image the file size jumps to 2MB for a 0.8 megapixel image.
Rendered textured scenes could easily overload the PNG compression algorithm to where they're huge, and if Discord is historically associated with gaming, one can imagine certain video game screenshots blasting past that 40mb limit.