Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
randy408
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
randy408
7y ago
For now it's either 8- or 16-bit RGBA, adding more output formats adds complexity and requires more test cases. What's your use case for a 3-byte layout?
32.
▲
by
randy408
7y ago
No, the letters are spelled out, the "s" stands for simple.
33.
▲
by
randy408
7y ago
Fixed, thanks.
34.
▲
by
randy408
7y ago
There are trade-offs with every library, libspng is safe to use with arbitrary data, with stb_image that isn't clear yet and lodepng is significantly slower.
35.
▲
by
randy408
7y ago
Submit a bug report on github, appveyor doesn't report any issues with VS2017.
36.
▲
by
randy408
7y ago
Naming things is hard, I wanted to have 'png' in the name and still have a short prefix for the API that matches the name.
37.
▲
by
randy408
7y ago
libspng doesn't support encoding images yet, the benchmarks show decode time. It is faster at decoding because it minimizes its per-pixel overhead, e.g. if a PNG image is has an RGBA 8-bit layout and it matches the requested output for
38.
▲
by
randy408
7y ago
libpng compresses the image rows multiple times with different filters to optimize for size, this filtering process is not optimized. The choice of zlib also makes a big difference, stock zlib is very slow, zlib-ng is the closest to a fast
39.
▲
Libspng – C library for reading and writing PNG files
(libspng.org)
159 points
by
randy408
7y ago
|
73 comments
40.
▲
by
randy408
7y ago
That page took 15 seconds to load
41.
▲
by
randy408
7y ago
They don't seem to prioritize user choice on the linux version either, there's no snap/flatpak available nor a user friendly option to not mount the FUSE filesystem. https://github.com/keybase/client/
42.
▲
by
randy408
8y ago
It would make the source file ~6k actual lines once the encoder and other features are added, but I see your point.
43.
▲
by
randy408
8y ago
If you look at that crate's issue tracker you can see open issues titled "Crash on malformed input", "4-bit grayscale image is read as 8-bit", I don't think it's safer or even tested to be correct. For spn
44.
▲
Libspng 0.4.4 – modern alternative to libpng, single source/header pair
(libspng.org)
9 points
by
randy408
8y ago
|
4 comments
45.
▲
Libspng 0.4.0 – First stable release (libpng alternative)
(libspng.org)
2 points
by
randy408
8y ago
|
0 comments
46.
▲
Libspng 0.3.1 released – faster than libpng
(libspng.org)
1 points
by
randy408
8y ago
|
0 comments
47.
▲
Show HN: libspng release 0.2
(gitlab.com)
1 points
by
randy408
8y ago
|
0 comments
48.
▲
Show HN: C library for PNG images
(gitlab.com)
1 points
by
randy408
9y ago
|
0 comments
49.
▲
Libspng – a simpler PNG library
(warpedbits.wordpress.com)
2 points
by
randy408
9y ago
|
0 comments