Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run pngcrush on vector-icons #14488

Merged
merged 1 commit into from
Jul 16, 2020
Merged

Run pngcrush on vector-icons #14488

merged 1 commit into from
Jul 16, 2020

Conversation

jaller94
Copy link
Contributor

Reduces their filesize without losing information.

Command used on Manjaro Linux:

find . -name '*.png' -exec mv {} {}.old \; -exec pngcrush {}.old {} \; -exec rm {}.old \;

@jaller94
Copy link
Contributor Author

  Recompressing IDAT chunks in ./620x300.png.old to ./620x300.png
   Total length of data found in critical chunks            =      7248
   Best pngcrush method        =   7 (ws 15 fm 0 zl 9 zs 0) =      4522
CPU time decode 0.035868, encode 0.127939, other 0.003549, total 0.173688 sec
  Recompressing IDAT chunks in ./44.png.old to ./44.png
   Total length of data found in critical chunks            =       985
   Best pngcrush method        =   7 (ws 13 fm 0 zl 9 zs 0) =       579
CPU time decode 0.000825, encode 0.004514, other 0.000889, total 0.006807 sec
  Recompressing IDAT chunks in ./120.png.old to ./120.png
   Total length of data found in critical chunks            =      2449
   Best pngcrush method        =   7 (ws 15 fm 0 zl 9 zs 0) =      1414
CPU time decode 0.002892, encode 0.016146, other 0.001017, total 0.021626 sec
  Recompressing IDAT chunks in ./mstile-70.png.old to ./mstile-70.png
   Total length of data found in critical chunks            =      1480
   Best pngcrush method        =   7 (ws 15 fm 0 zl 9 zs 0) =       890
CPU time decode 0.001907, encode 0.006203, other 0.001324, total 0.010487 sec
  Recompressing IDAT chunks in ./180.png.old to ./180.png
   Total length of data found in critical chunks            =      3752
   Best pngcrush method        =   7 (ws 15 fm 0 zl 9 zs 0) =      2170
CPU time decode 0.005308, encode 0.030536, other 0.001659, total 0.039921 sec
  Recompressing IDAT chunks in ./apple-touch-icon-120.png.old to ./apple-touch-icon-120.png
   Total length of data found in critical chunks            =      2340
   Best pngcrush method        =   7 (ws 15 fm 0 zl 9 zs 0) =      1478
CPU time decode 0.003233, encode 0.013169, other 0.001061, total 0.018977 sec
  Recompressing IDAT chunks in ./300.png.old to ./300.png
   Total length of data found in critical chunks            =      6501
   Best pngcrush method        =   7 (ws 15 fm 0 zl 9 zs 0) =      3898
CPU time decode 0.011875, encode 0.069497, other 0.002416, total 0.087725 sec
  Recompressing IDAT chunks in ./76.png.old to ./76.png
   Total length of data found in critical chunks            =      1723
   Best pngcrush method        =   7 (ws 15 fm 0 zl 9 zs 0) =       980
CPU time decode 0.001491, encode 0.008913, other 0.000988, total 0.012271 sec
  Recompressing IDAT chunks in ./apple-touch-icon-76.png.old to ./apple-touch-icon-76.png
   Total length of data found in critical chunks            =      1572
   Best pngcrush method        =   7 (ws 15 fm 0 zl 9 zs 0) =      1000
CPU time decode 0.001855, encode 0.006965, other 0.001337, total 0.011138 sec
  Recompressing IDAT chunks in ./apple-touch-icon-57.png.old to ./apple-touch-icon-57.png
   Total length of data found in critical chunks            =      1195
   Best pngcrush method        =   7 (ws 14 fm 0 zl 9 zs 0) =       753
CPU time decode 0.000957, encode 0.003351, other 0.000616, total 0.005491 sec
  Recompressing IDAT chunks in ./apple-touch-icon-144.png.old to ./apple-touch-icon-144.png
   Total length of data found in critical chunks            =      2883
   Best pngcrush method        =   7 (ws 15 fm 0 zl 9 zs 0) =      1853
CPU time decode 0.004159, encode 0.017514, other 0.001249, total 0.024559 sec
  Recompressing IDAT chunks in ./apple-touch-icon-72.png.old to ./apple-touch-icon-72.png
   Total length of data found in critical chunks            =      1465
   Best pngcrush method        =   7 (ws 15 fm 0 zl 9 zs 0) =       924
CPU time decode 0.001353, encode 0.005569, other 0.000692, total 0.008425 sec
  Recompressing IDAT chunks in ./24.png.old to ./24.png
   Total length of data found in critical chunks            =       601
   Best pngcrush method        =   7 (ws 12 fm 0 zl 9 zs 0) =       384
CPU time decode 0.000339, encode 0.001575, other 0.000589, total 0.002760 sec
  Recompressing IDAT chunks in ./152.png.old to ./152.png
   Total length of data found in critical chunks            =      3263
   Best pngcrush method        =   7 (ws 15 fm 0 zl 9 zs 0) =      1902
CPU time decode 0.003720, encode 0.022296, other 0.001641, total 0.029494 sec
  Recompressing IDAT chunks in ./1240x600.png.old to ./1240x600.png
   Total length of data found in critical chunks            =     15754
   Best pngcrush method        =   7 (ws 15 fm 0 zl 9 zs 0) =     10917
CPU time decode 0.070052, encode 0.279310, other 0.002811, total 0.358725 sec
  Recompressing IDAT chunks in ./150.png.old to ./150.png
   Total length of data found in critical chunks            =      3146
   Best pngcrush method        =   7 (ws 15 fm 0 zl 9 zs 0) =      1776
CPU time decode 0.002996, encode 0.017989, other 0.000939, total 0.023350 sec
  Recompressing IDAT chunks in ./88.png.old to ./88.png
   Total length of data found in critical chunks            =      1964
   Best pngcrush method        =   7 (ws 15 fm 0 zl 9 zs 0) =      1096
CPU time decode 0.001670, encode 0.011169, other 0.001056, total 0.014815 sec
  Recompressing IDAT chunks in ./apple-touch-icon-180.png.old to ./apple-touch-icon-180.png
   Total length of data found in critical chunks            =      3448
   Best pngcrush method        =   7 (ws 15 fm 0 zl 9 zs 0) =      2249
CPU time decode 0.005242, encode 0.024051, other 0.001281, total 0.032534 sec
  Recompressing IDAT chunks in ./mstile-150.png.old to ./mstile-150.png
   Total length of data found in critical chunks            =      2918
   Best pngcrush method        =   7 (ws 15 fm 0 zl 9 zs 0) =      1892
CPU time decode 0.005520, encode 0.020862, other 0.001775, total 0.030442 sec
  Recompressing IDAT chunks in ./apple-touch-icon-114.png.old to ./apple-touch-icon-114.png
   Total length of data found in critical chunks            =      2163
   Best pngcrush method        =   7 (ws 15 fm 0 zl 9 zs 0) =      1394
CPU time decode 0.003534, encode 0.014050, other 0.001191, total 0.020426 sec
  Recompressing IDAT chunks in ./50.png.old to ./50.png
   Total length of data found in critical chunks            =      1201
   Best pngcrush method        =   7 (ws 14 fm 0 zl 9 zs 0) =       682
CPU time decode 0.001201, encode 0.006529, other 0.001062, total 0.009543 sec
  Recompressing IDAT chunks in ./mstile-310.png.old to ./mstile-310.png
   Total length of data found in critical chunks            =      6406
   Best pngcrush method        =   7 (ws 15 fm 0 zl 9 zs 0) =      3943
CPU time decode 0.013693, encode 0.055008, other 0.001822, total 0.074106 sec
  Recompressing IDAT chunks in ./apple-touch-icon-60.png.old to ./apple-touch-icon-60.png
   Total length of data found in critical chunks            =      1264
   Best pngcrush method        =   7 (ws 14 fm 0 zl 9 zs 0) =       787
CPU time decode 0.001365, encode 0.004182, other 0.000852, total 0.007177 sec
  Recompressing IDAT chunks in ./apple-touch-icon-152.png.old to ./apple-touch-icon-152.png
   Total length of data found in critical chunks            =      3034
   Best pngcrush method        =   7 (ws 15 fm 0 zl 9 zs 0) =      1995
CPU time decode 0.005690, encode 0.023519, other 0.001694, total 0.033235 sec
  Recompressing IDAT chunks in ./1024.png.old to ./1024.png
   Total length of data found in critical chunks            =     24872
   Best pngcrush method        =   7 (ws 15 fm 0 zl 9 zs 0) =     17273
CPU time decode 0.096998, encode 0.396958, other 0.004201, total 0.508406 sec

@jryans jryans merged commit efa6039 into element-hq:develop Jul 16, 2020
@jryans
Copy link
Collaborator

jryans commented Jul 16, 2020

Thanks for the contribution!

@jaller94 jaller94 deleted the j94/pngcrush branch July 16, 2020 13:26
@MTRNord
Copy link
Contributor

MTRNord commented Jul 16, 2020

I know this is not a issue but whatabout also using webp for browsers that support webp?

refi64 added a commit to refi64/riot-web-lc that referenced this pull request Jul 17, 2020
[Full Changelog](element-hq/element-web@v1.7.0...v1.7.1)
* Upgrade to React SDK 2.10.1
* Fix SSO session ID paramater
[\element-hq#14544](element-hq#14544)
* Run pngcrush on vector-icons
[\element-hq#14488](element-hq#14488)
* Fix hosting signup link
[\element-hq#14502](element-hq#14502)
* Use the right protocol for SSO URLs
[\element-hq#14513](element-hq#14513)
* Fix mstile-310x150 by renaming it
[\element-hq#14485](element-hq#14485)
* Update blog and twitter links to point to Element
[\element-hq#14478](element-hq#14478)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants