TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

LodePNG: All-in-one PNG image decoder and encoder for C and C++

56 点作者 evandrix超过 10 年前

8 条评论

f-超过 10 年前
Please be <i>very</i> careful when using less popular C&#x2F;C++ image parsing libraries on anything that is user-controlled or that comes from the Internet.<p>Image, multimedia, and archive parsing are notoriously prone to security bugs. In fact, so are most other types of complex parsing. There are months of researcher work and decades of CPU time that went into auditing and fuzzing libraries such as libpng or libjpeg-turbo, identifying and fixing lots of vulnerabilities. The same isn&#x27;t true for libraries with much smaller following, especially if their documentation doesn&#x27;t contain any discussion of security risks and countermeasures taken.
评论 #8602230 未加载
akx超过 10 年前
I&#x27;m reminded of stb_image... <a href="https://github.com/nothings/stb/blob/master/stb_image.h" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nothings&#x2F;stb&#x2F;blob&#x2F;master&#x2F;stb_image.h</a>
评论 #8601247 未加载
rblstr超过 10 年前
Well this is a little strange to link. I&#x27;ve been using this small library for years, last update was 2005. Hardly &#x27;news&#x27;
评论 #8600997 未加载
mmozeiko超过 10 年前
Small image libraries are fun!<p>jpeg writing &amp; loading: <a href="https://code.google.com/p/jpeg-compressor/" rel="nofollow">https:&#x2F;&#x2F;code.google.com&#x2F;p&#x2F;jpeg-compressor&#x2F;</a><p>jpeg loading: <a href="https://code.google.com/p/picojpeg/" rel="nofollow">https:&#x2F;&#x2F;code.google.com&#x2F;p&#x2F;picojpeg&#x2F;</a><p>jpeg loading: <a href="https://code.google.com/p/jpgd/" rel="nofollow">https:&#x2F;&#x2F;code.google.com&#x2F;p&#x2F;jpgd&#x2F;</a><p>OpenEXR writing: <a href="https://github.com/aras-p/miniexr/blob/master/miniexr.cpp" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;aras-p&#x2F;miniexr&#x2F;blob&#x2F;master&#x2F;miniexr.cpp</a><p>PNG writing (and zlib + ZIP file handling): <a href="https://code.google.com/p/miniz/" rel="nofollow">https:&#x2F;&#x2F;code.google.com&#x2F;p&#x2F;miniz&#x2F;</a><p>Newest version of miniz reads and writes zip64 archives and is part of vogl project: <a href="https://github.com/ValveSoftware/vogl/tree/master/src/voglcore" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ValveSoftware&#x2F;vogl&#x2F;tree&#x2F;master&#x2F;src&#x2F;voglco...</a><p>And of course already mentioned stb_image: <a href="https://github.com/nothings/stb/blob/master/stb_image.h" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nothings&#x2F;stb&#x2F;blob&#x2F;master&#x2F;stb_image.h</a>
geocar超过 10 年前
I wrote a png writer[1] a few years ago with no dependencies that adds about 3k to the resulting binary.<p>It doesn&#x27;t deflate, but it&#x27;s useful if you need to take a screenshot where space is at a premium.<p>[1]: <a href="http://geocar.sdf1.org/pngw.tgz" rel="nofollow">http:&#x2F;&#x2F;geocar.sdf1.org&#x2F;pngw.tgz</a>
olavgg超过 10 年前
Funny that this shows up today, as what I&#x27;ve spent time on today is to create an image reader for sending images over the NFC protocol.<p>I&#x27;ve been so frustrated today by trying to get libpng to work, but landed on this library one hour ago and now everything just works sweet! :-)
评论 #8602554 未加载
评论 #8602481 未加载
willvarfar超过 10 年前
Just had fun clicking on the other projects link and finding LodePaint and the esoteric languages and ... you go take a look yourself! :D
zeroDivisible超过 10 年前
I don&#x27;t want to sound rude, but based on the title, I understand that this has something to do with PNG files.<p>It might be worth putting a bit more details there.
评论 #8600806 未加载