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.

File Formats Debunk – Why you should stop rendering to PNG (and use EXR instead)

18 pointsby danboarderover 1 year ago

9 comments

Aardwolfover 1 year ago
This page makes no sense: e.g. proposing (uncompressed) jpeg over png for screenshots without any explanation why (note that even uncompressed jpeg doesn&#x27;t necessarily store the exact original rgb color values but is likely ok for 8-bit rgb). Calls png &quot;forbidden&quot; but lists a bunch of other formats (without listing an actually good one like jpeg xl) as a valid replacement without saying what those (like webp which in its lossy version cannot even encode color at full resolution) formats do that png doesn&#x27;t.<p>Complains something about alpha channels but doesn&#x27;t explain what (and the mentioned jpeg has no alpha support)<p>PNG supports 16 bit per channel and ICC color profiles so can do HDR.
评论 #39053113 未加载
Retr0idover 1 year ago
&gt; Screen-grabs can be taken in JPG<p>JPEG is unacceptable for screenshots of text, unless you can disable chroma subsampling, which isn&#x27;t always an exposed option.<p>As a quick test, I took a screenshot of this comment, and saved it as both a PNG and 100% quality 444 JPEG, exported from GIMP. The JPEG is 81477 bytes, and the PNG is 44212.
评论 #39053219 未加载
评论 #39054076 未加载
评论 #39053044 未加载
parastiover 1 year ago
Sorry, but this looks like opinionated nonsense. There&#x27;s an underlined and bolded &quot;PNG is a forbidden file format&quot; that is in fact not a link, without explaining how and why it is forbidden.
评论 #39053213 未加载
Enneaover 1 year ago
This is the first time I&#x27;ve heard about (Open)EXR, and it honestly sounds like a pretty neat format. But this article lacks context, and it sorely needs it. PNG has many good uses. Apparently not in the author&#x27;s chosen domain, and yet they condemn PNG entirely.<p>Which makes this a highly opinionated piece. And why should I listen to the opinion of somebody who thinks it&#x27;s necessary to disable context menus on their website?
klausaover 1 year ago
I think a missing context here is that this is aimed at people who work with VFX and other forms of computer-made images; and even more in context of &quot;what should your authoritative master format for archival purposes be&quot;.<p>Which also makes the line about JPEG noise make a lot more sense.<p>AFAICT, this is not a generic &quot;PNG always bad and you should never use it to display images on the web&quot; screen.
评论 #39052959 未加载
kevingaddover 1 year ago
Kind of wish this site went to more effort to explain some of the details. I&#x27;m a graphics programmer so I can <i>guess</i> why PNG is bad at alpha, but they&#x27;ve done nothing to convince me that EXR gets it right other than show one or two comparison screenshots.
评论 #39053032 未加载
评论 #39053010 未加载
charcircuitover 1 year ago
PNG not using premultiplied alpha does mean that it is not great as an intermediary format in certain scenarios, but saving the final result as a PNG should not be an issue.
burrishover 1 year ago
to the people in the comment, it&#x27;s fine to use PNG.<p>There are advantages to use EXR as listed on the website, but imo they are more geared toward people working in 3D&#x2F;CGI&#x2F;VFX
6R1M0R4CL3over 1 year ago
that file format is mainly used in professional settings and yes, it is good. but saying that png is bad is nonsense. png has been designed to REPLACE GIF that was the target : do what GIF does, without the Lempel-Ziv patent issue. and drop a few improvements... that&#x27;s it.<p>comparing something that was designed to replace GIF for Internet use to a professional-level image format designed for specific industrial (as in cinema) work... what the hell ?<p>if you&#x2F;they want to push for EXR, make a proposal to the browser developers. and in the end, the website developers and public will choose.<p>how big those pictures are, how fast they load, how costly it is on the CPU (we are going in a world where how much power you use IS going to be important, and on fixed machines as much as phones).