Skip to content

Loading…

Losslessly optimize images #1274

Open
wants to merge 3 commits into from

3 participants

@CoolOppo

I reduced the size of all the images changed in this commit with OptiPNG and Gifsicle.

@lewisje

If you want to be super-optimized, try TruePNG (to optimize palette in transparent areas) followed by PNGOUT, AdvPNG, AdvDef, DeflOpt, Defluff, and DeflOpt again...or something like that.

As for GIFs, I don't know any other lossless optimizer, but I know for JPGs there is JPEGOptim (I haven't checked whether the repo even has any JPGs).

I might try something like that once this pull request is either merged or blocked.

@CoolOppo

@lewisje The best way to optimize JPEGs losslessly is mozjpeg. The absolute best for PNGs is zopflipng, without a doubt, but it's pretty slow.

@lewisje

I just found pre-built Win32 binaries of mozjpeg, which are very helpful: http://mozjpeg.codelove.de/binaries.html

@CoolOppo
@CoolOppo

@lewisje I just built everything with GCC 5.1.1 (from here) on Windows. Here's the build:

https://www.dropbox.com/s/80p9ggldaj7acvs/WjEbo-1430449118.876.7z?dl=1

@lewisje

Since this PR convo, I have found FileOptimizer, which bundles the utilities discussed here, and more things, like Leanify: http://nikkhokkho.sourceforge.net/static.php?page=FileOptimizer

@chrisaljoudi

Also check out ImageOptim.

@lewisje

I've known about that and PNGGauntlet and Trimage for a long time (I heard about PNGGauntlet first, and its homepage recommended ImageOptim for OS X and Trimage for Linux), but FileOptimizer is newer and more comprehensive; however, there isn't an obvious way to get FileOptimizer to run on OS X, while FileOptimizer does run under Wine for Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 0 additions and 0 deletions.
  1. BIN doc/benchmarks/cpu-usage-overall-chart-20141226.png
  2. BIN doc/benchmarks/filters-load-performance-0.8.9.0.png
  3. BIN doc/benchmarks/mem-usage-20140918-after.png
  4. BIN doc/benchmarks/mem-usage-20140918-before.png
  5. BIN doc/benchmarks/mem-usage-20141223-after.png
  6. BIN doc/benchmarks/mem-usage-20141223-before.png
  7. BIN doc/benchmarks/mem-usage-in-page-20140919-abp.png
  8. BIN doc/benchmarks/mem-usage-in-page-20140919-none.png
  9. BIN doc/benchmarks/mem-usage-in-page-20140919-ublock.png
  10. BIN doc/benchmarks/mem-usage-in-page-20141224-abp-more.png
  11. BIN doc/benchmarks/mem-usage-in-page-20141224-abp.png
  12. BIN doc/benchmarks/mem-usage-in-page-20141224-none.png
  13. BIN doc/benchmarks/mem-usage-in-page-20141224-ublock.png
  14. BIN doc/benchmarks/mem-usage-overall-chart-20141224.png
  15. BIN doc/benchmarks/mem-usage-overall-chart-20150205.png
  16. BIN doc/benchmarks/mem-usage-overall-chart-safari-20150205.png
  17. BIN doc/benchmarks/privex-201409-30.png
  18. BIN doc/benchmarks/privex-201502-16.png
  19. BIN doc/benchmarks/setup-performance-0.8.9.0.png
  20. BIN doc/benchmarks/setup-performance-internals.png
  21. BIN doc/benchmarks/vim-test-abp-vs-ublock.png
  22. BIN doc/img/3rd-party-filters-custom.png
  23. BIN doc/img/abp-abe.png
  24. BIN doc/img/abp-obr.png
  25. BIN doc/img/abp-own-mem.png
  26. BIN doc/img/abp-vs-ublock-page-1.png
  27. BIN doc/img/acid3test-mem.png
  28. BIN doc/img/behind-the-scene-popup.gif
  29. BIN doc/img/bgpage-cpu-si.comx10.png
  30. BIN doc/img/chrome-store-david-h-mason.png
  31. BIN doc/img/df-dd-01.png
  32. BIN doc/img/df-dd-02.png
  33. BIN doc/img/df-dd-03.png
  34. BIN doc/img/df-qg-01.png
  35. BIN doc/img/df-qg-02.png
  36. BIN doc/img/df-qg-03.png
  37. BIN doc/img/df-qg-04.png
  38. BIN doc/img/df-qg-05.png
  39. BIN doc/img/df-qg-06.png
  40. BIN doc/img/df-qg-07.png
  41. BIN doc/img/df-qg-08.png
  42. BIN doc/img/df-qg-09.png
  43. BIN doc/img/df-qg-10.png
  44. BIN doc/img/df-qg-11.png
  45. BIN doc/img/df-qg-12.png
  46. BIN doc/img/df-turn-off-cosmetic.gif
  47. BIN doc/img/df-tut-01.png
  48. BIN doc/img/df-tut-02.png
  49. BIN doc/img/df-tut-03.png
  50. BIN doc/img/df-tut-04.png
  51. BIN doc/img/df-tut-05.png
  52. BIN doc/img/df-tut-06.png
  53. BIN doc/img/dynamic-filtering-1.png
  54. BIN doc/img/dynamic-filtering-2.png
  55. BIN doc/img/dynamic-filtering-3.png
  56. BIN doc/img/dynamic-filtering-4.png
  57. BIN doc/img/dynamic-filtering-5.png
  58. BIN doc/img/dynamic-filtering-6.png
  59. BIN doc/img/dynamic-filtering-7.png
  60. BIN doc/img/dynamic-filtering-8.png
  61. BIN doc/img/dynamic-filtering-9.png
  62. BIN doc/img/gh-header.png
  63. BIN doc/img/hn-abp.png
  64. BIN doc/img/hn-alone.png
  65. BIN doc/img/hn-ublock.png
  66. BIN doc/img/icon64@2x.png
  67. BIN doc/img/languageicon-36.png
  68. BIN doc/img/leaverou-adblock-is-theft.png
  69. BIN doc/img/local-mirroring-example-1.png
  70. BIN doc/img/local-mirroring.png
  71. BIN doc/img/mem-footprint-at-launch-time.png
  72. BIN doc/img/opera-300x188.png
  73. BIN doc/img/page-block.png
  74. BIN doc/img/popup-1.png
  75. BIN doc/img/popup-1b.png
  76. BIN doc/img/popup-1c.png
  77. BIN doc/img/popup-1d.png
  78. BIN doc/img/popup-1e.png
  79. BIN doc/img/popup-1f.png
  80. BIN doc/img/popup-1h.png
  81. BIN doc/img/popup-2.png
  82. BIN doc/img/privacy-benchmark.png
  83. BIN doc/img/profiling-cosmetic-filters-v0.3.png
  84. BIN doc/img/profiling-cosmetic-filters-v0.4.png
  85. BIN doc/img/rlogger-01.png
  86. BIN doc/img/rlogger-02.png
  87. BIN doc/img/rlogger-03.png
  88. BIN doc/img/rlogger-04.png
  89. BIN doc/img/rlogger-05.png
  90. BIN doc/img/rlogger-06.png
  91. BIN doc/img/ss-chromium-1.png
  92. BIN doc/img/ss-chromium-2.png
  93. BIN doc/img/ss-chromium-3.png
  94. BIN doc/img/ss-chromium-4.png
  95. BIN doc/img/ss-element-picker.png
  96. BIN doc/img/ss-opera-1.png
  97. BIN doc/img/ss-opera-2.png
  98. BIN doc/img/ss-opera-3.png
  99. BIN doc/img/tips-n-tricks-001.png
  100. BIN doc/img/tips-n-tricks-002.png
  101. BIN doc/img/ublock-blocks.gif
  102. BIN doc/img/ublock-obr.png
  103. BIN doc/img/ublock-own-mem.png
  104. BIN doc/img/ublock-vs-abp-memory-201409-a.png
  105. BIN doc/img/ublock-vs-abp-memory-201409-b.png
  106. BIN doc/img/wiki-hphosts.png
  107. BIN doc/media/ublock-vs-abp-cpu-2.png
  108. BIN platform/chromium/img/browsericons/icon19-off.png
  109. BIN platform/chromium/img/browsericons/icon38-off.png
  110. BIN platform/safari/img/browsericons/safari-icon16.png
  111. BIN platform/safari/img/browsericons/safari-icon16@2x.png
  112. BIN src/img/help16.png
  113. BIN src/img/icon_16.png
View
BIN doc/benchmarks/cpu-usage-overall-chart-20141226.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/benchmarks/filters-load-performance-0.8.9.0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/benchmarks/mem-usage-20140918-after.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/benchmarks/mem-usage-20140918-before.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/benchmarks/mem-usage-20141223-after.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/benchmarks/mem-usage-20141223-before.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/benchmarks/mem-usage-in-page-20140919-abp.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/benchmarks/mem-usage-in-page-20140919-none.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/benchmarks/mem-usage-in-page-20140919-ublock.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/benchmarks/mem-usage-in-page-20141224-abp-more.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/benchmarks/mem-usage-in-page-20141224-abp.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/benchmarks/mem-usage-in-page-20141224-none.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/benchmarks/mem-usage-in-page-20141224-ublock.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/benchmarks/mem-usage-overall-chart-20141224.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/benchmarks/mem-usage-overall-chart-20150205.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/benchmarks/mem-usage-overall-chart-safari-20150205.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/benchmarks/privex-201409-30.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/benchmarks/privex-201502-16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/benchmarks/setup-performance-0.8.9.0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/benchmarks/setup-performance-internals.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/benchmarks/vim-test-abp-vs-ublock.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/img/3rd-party-filters-custom.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/img/abp-abe.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/img/abp-obr.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/img/abp-own-mem.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/img/abp-vs-ublock-page-1.png
Diff not rendered
View
BIN doc/img/acid3test-mem.png
Diff not rendered
View
BIN doc/img/behind-the-scene-popup.gif
Diff not rendered
View
BIN doc/img/bgpage-cpu-si.comx10.png
Diff not rendered
View
BIN doc/img/chrome-store-david-h-mason.png
Diff not rendered
View
BIN doc/img/df-dd-01.png
Diff not rendered
View
BIN doc/img/df-dd-02.png
Diff not rendered
View
BIN doc/img/df-dd-03.png
Diff not rendered
View
BIN doc/img/df-qg-01.png
Diff not rendered
View
BIN doc/img/df-qg-02.png
Diff not rendered
View
BIN doc/img/df-qg-03.png
Diff not rendered
View
BIN doc/img/df-qg-04.png
Diff not rendered
View
BIN doc/img/df-qg-05.png
Diff not rendered
View
BIN doc/img/df-qg-06.png
Diff not rendered
View
BIN doc/img/df-qg-07.png
Diff not rendered
View
BIN doc/img/df-qg-08.png
Diff not rendered
View
BIN doc/img/df-qg-09.png
Diff not rendered
View
BIN doc/img/df-qg-10.png
Diff not rendered
View
BIN doc/img/df-qg-11.png
Diff not rendered
View
BIN doc/img/df-qg-12.png
Diff not rendered
View
BIN doc/img/df-turn-off-cosmetic.gif
Diff not rendered
View
BIN doc/img/df-tut-01.png
Diff not rendered
View
BIN doc/img/df-tut-02.png
Diff not rendered
View
BIN doc/img/df-tut-03.png
Diff not rendered
View
BIN doc/img/df-tut-04.png
Diff not rendered
View
BIN doc/img/df-tut-05.png
Diff not rendered
View
BIN doc/img/df-tut-06.png
Diff not rendered
View
BIN doc/img/dynamic-filtering-1.png
Diff not rendered
View
BIN doc/img/dynamic-filtering-2.png
Diff not rendered
View
BIN doc/img/dynamic-filtering-3.png
Diff not rendered
View
BIN doc/img/dynamic-filtering-4.png
Diff not rendered
View
BIN doc/img/dynamic-filtering-5.png
Diff not rendered
View
BIN doc/img/dynamic-filtering-6.png
Diff not rendered
View
BIN doc/img/dynamic-filtering-7.png
Diff not rendered
View
BIN doc/img/dynamic-filtering-8.png
Diff not rendered
View
BIN doc/img/dynamic-filtering-9.png
Diff not rendered
View
BIN doc/img/gh-header.png
Diff not rendered
View
BIN doc/img/hn-abp.png
Diff not rendered
View
BIN doc/img/hn-alone.png
Diff not rendered
View
BIN doc/img/hn-ublock.png
Diff not rendered
View
BIN doc/img/icon64@2x.png
Diff not rendered
View
BIN doc/img/languageicon-36.png
Diff not rendered
View
BIN doc/img/leaverou-adblock-is-theft.png
Diff not rendered
View
BIN doc/img/local-mirroring-example-1.png
Diff not rendered
View
BIN doc/img/local-mirroring.png
Diff not rendered
View
BIN doc/img/mem-footprint-at-launch-time.png
Diff not rendered
View
BIN doc/img/opera-300x188.png
Diff not rendered
View
BIN doc/img/page-block.png
Diff not rendered
View
BIN doc/img/popup-1.png
Diff not rendered
View
BIN doc/img/popup-1b.png
Diff not rendered
View
BIN doc/img/popup-1c.png
Diff not rendered
View
BIN doc/img/popup-1d.png
Diff not rendered
View
BIN doc/img/popup-1e.png
Diff not rendered
View
BIN doc/img/popup-1f.png
Diff not rendered
View
BIN doc/img/popup-1h.png
Diff not rendered
View
BIN doc/img/popup-2.png
Diff not rendered
View
BIN doc/img/privacy-benchmark.png
Diff not rendered
View
BIN doc/img/profiling-cosmetic-filters-v0.3.png
Diff not rendered
View
BIN doc/img/profiling-cosmetic-filters-v0.4.png
Diff not rendered
View
BIN doc/img/rlogger-01.png
Diff not rendered
View
BIN doc/img/rlogger-02.png
Diff not rendered
View
BIN doc/img/rlogger-03.png
Diff not rendered
View
BIN doc/img/rlogger-04.png
Diff not rendered
View
BIN doc/img/rlogger-05.png
Diff not rendered
View
BIN doc/img/rlogger-06.png
Diff not rendered
View
BIN doc/img/ss-chromium-1.png
Diff not rendered
View
BIN doc/img/ss-chromium-2.png
Diff not rendered
View
BIN doc/img/ss-chromium-3.png
Diff not rendered
View
BIN doc/img/ss-chromium-4.png
Diff not rendered
View
BIN doc/img/ss-element-picker.png
Diff not rendered
View
BIN doc/img/ss-opera-1.png
Diff not rendered
View
BIN doc/img/ss-opera-2.png
Diff not rendered
View
BIN doc/img/ss-opera-3.png
Diff not rendered
View
BIN doc/img/tips-n-tricks-001.png
Diff not rendered
View
BIN doc/img/tips-n-tricks-002.png
Diff not rendered
View
BIN doc/img/ublock-blocks.gif
Diff not rendered
View
BIN doc/img/ublock-obr.png
Diff not rendered
View
BIN doc/img/ublock-own-mem.png
Diff not rendered
View
BIN doc/img/ublock-vs-abp-memory-201409-a.png
Diff not rendered
View
BIN doc/img/ublock-vs-abp-memory-201409-b.png
Diff not rendered
View
BIN doc/img/wiki-hphosts.png
Diff not rendered
View
BIN doc/media/ublock-vs-abp-cpu-2.png
Diff not rendered
View
BIN platform/chromium/img/browsericons/icon19-off.png
Diff not rendered
View
BIN platform/chromium/img/browsericons/icon38-off.png
Diff not rendered
View
BIN platform/safari/img/browsericons/safari-icon16.png
Diff not rendered
View
BIN platform/safari/img/browsericons/safari-icon16@2x.png
Diff not rendered
View
BIN src/img/help16.png
Diff not rendered
View
BIN src/img/icon_16.png
Diff not rendered
Something went wrong with that request. Please try again.