Issue27461
Created on 2016-07-07 12:29 by nnnnnn, last changed 2022-04-11 14:58 by admin.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| pngs.patch | nnnnnn, 2016-07-26 15:23 | |||
| Messages (5) | |||
|---|---|---|---|
| msg269929 - (view) | Author: (nnnnnn) * | Date: 2016-07-07 12:28 | |
Running PNGs through zopflipng makes them smaller, with no drawbacks. This patch was done with zopflipng version 1.0.1 with the -m option, and decreases the in-tree total size size of all *.png by almost 100KiB. $ find -name "*.png" | xargs du -bc | tail -n 1 # before 291101 total $ find -name "*.png" | xargs du -bc | tail -n 1 # after 194639 total |
|||
| msg269930 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2016-07-07 12:31 | |
Hi, The idea is interesting, but IMO it would be more efficient to contribute to Sphinx, so all documentations will benefit of smallest pictures. There is a similar tool for JPEG. Victor |
|||
| msg269931 - (view) | Author: (nnnnnn) * | Date: 2016-07-07 12:36 | |
Sure, I plan to suggest this to sphinx as well. One corresponding tool for JPEGs is jpegoptim and its --strip-all option, but there is only ./Mac/BuildScript/resources/background.jpg in the cpython source tree (which despite of the .jpg extension appears to be a PNG file so I don't want to touch that stuff), plus ./Lib/test/imghdrdata/python.jpg which isn't worth a patch alone :) |
|||
| msg269932 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2016-07-07 12:38 | |
> there is only ./Mac/BuildScript/resources/background.jpg in the cpython source tree (which despite of the .jpg extension appears to be a PNG file so I don't want to touch that stuff) Oh funny, you're right: it's a PNG file :-) |
|||
| msg271377 - (view) | Author: (nnnnnn) * | Date: 2016-07-26 15:23 | |
Updated patch against tip. Before: 289426 total After: 194638 total |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:33 | admin | set | github: 71648 |
| 2018-06-16 15:37:41 | willingc | set | stage: patch review |
| 2016-07-26 15:25:56 | nnnnnn | set | files: - pngs.patch |
| 2016-07-26 15:25:30 | nnnnnn | set | files:
+ pngs.patch messages: + msg271377 |
| 2016-07-07 12:38:03 | vstinner | set | messages: + msg269932 |
| 2016-07-07 12:36:17 | nnnnnn | set | messages: + msg269931 |
| 2016-07-07 12:31:58 | vstinner | set | nosy:
+ vstinner messages: + msg269930 |
| 2016-07-07 12:29:34 | nnnnnn | create | |
