TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Sad Story of PNG Gamma “Correction”

19 pointsby kinetikabout 15 years ago

1 comment

blasdelabout 15 years ago
DPI metadata in PNGs is even worse than Gamma 'correction', since it serves no purpose whatsoever.<p>DPI is only remotely meaningful when dealing with something that was once printed (set it on scans so you know the original size), or soon will be (know how big to print it). In practice there's so much completely bogus DPI metadata out there that little software will respect it on output. For further brokenness, DPI is cleverly stored as a Rational in most formats, but nearly all metadata libraries expose it only as a float!<p>There's a ton of software out there written by some twit that read on the internet somewhere that "Macs are 72dpi, everything else is 96dpi", and then goes on to set that in every file it outputs depending on the platform. Inkscape does this and it is incredibly obnoxious.
评论 #1234338 未加载