less bytes, same images
Lossless image optimization #3341
pull Need4Video wants to merge 1 commits into bitcoin:master from Need4Video:master changing 50 files +0 −0-
Need4Video commented at 9:12 AM on December 2, 2013: contributor
-
d6cb85d50d
Lossless image optimization
less bytes, same images
-
laanwj commented at 9:19 AM on December 2, 2013: member
ACK
-
BitcoinPullTester commented at 9:31 AM on December 2, 2013: none
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/d6cb85d50db46ac46097857dd69f8f1ae5c5e13b for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.
-
wtogami commented at 11:45 AM on December 2, 2013: contributor
http://www.olegkikin.com/png_optimizers/ Which PNG optimizer did you use? Apparently they differ substantially in results. After research on this I personally use only pngout.
-
Need4Video commented at 12:13 PM on December 2, 2013: contributor
I used truepng, pngwolfz, pngzopfli, pngout, and then advdef to recompress the iDAT stream. You can try to optimize further the images but it won't save more than 5 bytes.
-
sipa commented at 12:25 PM on December 2, 2013: member
ACK
- sipa referenced this in commit 9ab7a0609e on Dec 2, 2013
- sipa merged this on Dec 2, 2013
- sipa closed this on Dec 2, 2013
-
wtogami commented at 1:03 PM on December 2, 2013: contributor
gitian win32 still uses libpng-1.5.9.tar.gz
http://www.libpng.org/pub/png/libpng.html All "modern" versions of libpng through 1.5.9 ... fail to correctly handle malloc() failure for text chunks (in png_set_text_2()), which can lead to memory corruption and the possibility of execution of hostile code.
Yes it is quite unlikely, but did any of you look into possible security implications of committing PNG's from a random contributor? It is entirely possible to include a hostile payload directly in our gitian builds if we are not paying attention. This gitian build is also the toolchain where we have not enabled hardening due to mingw bugs.
I hope we get around to upgrading the gitian deps...
-
Need4Video commented at 1:08 PM on December 2, 2013: contributor
How would it be possible with smaller images? I think that including a hostile payload would increase the size of the images, isn't it? You can check the images with TweakPNG (http://entropymine.com/jason/tweakpng/).
-
wtogami commented at 1:25 PM on December 2, 2013: contributor
I had been suggesting that since March at least. The response has always been "this code doesn't touch the network, don't worry about it." =)
-
laanwj commented at 1:54 PM on December 2, 2013: member
I'm going to remove the gitian libpng dependency completely. It's used for libqrcode, but just the demos, not any part that we use.
-
wtogami commented at 7:03 PM on December 2, 2013: contributor
Thank you.
- DrahtBot locked this on Sep 8, 2021