{"action":"created","issue":{"url":"https://api.github.com/repos/chocolatey/chocolatey.org/issues/407","repository_url":"https://api.github.com/repos/chocolatey/chocolatey.org","labels_url":"https://api.github.com/repos/chocolatey/chocolatey.org/issues/407/labels{/name}","comments_url":"https://api.github.com/repos/chocolatey/chocolatey.org/issues/407/comments","events_url":"https://api.github.com/repos/chocolatey/chocolatey.org/issues/407/events","html_url":"https://github.com/chocolatey/chocolatey.org/pull/407","id":165964670,"number":407,"title":"optimize png images using zopflipng","user":{"login":"PeterDaveHello","id":3691490,"avatar_url":"https://avatars.githubusercontent.com/u/3691490?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterDaveHello","html_url":"https://github.com/PeterDaveHello","followers_url":"https://api.github.com/users/PeterDaveHello/followers","following_url":"https://api.github.com/users/PeterDaveHello/following{/other_user}","gists_url":"https://api.github.com/users/PeterDaveHello/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterDaveHello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterDaveHello/subscriptions","organizations_url":"https://api.github.com/users/PeterDaveHello/orgs","repos_url":"https://api.github.com/users/PeterDaveHello/repos","events_url":"https://api.github.com/users/PeterDaveHello/events{/privacy}","received_events_url":"https://api.github.com/users/PeterDaveHello/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-17T07:17:16Z","updated_at":"2016-07-18T15:02:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chocolatey/chocolatey.org/pulls/407","html_url":"https://github.com/chocolatey/chocolatey.org/pull/407","diff_url":"https://github.com/chocolatey/chocolatey.org/pull/407.diff","patch_url":"https://github.com/chocolatey/chocolatey.org/pull/407.patch"},"body":"re-compress the png images losslessly using Google's zopflipng, 129 images optimized as below:\r\n```\r\n chocolatey/Website/Content/Images/404.png                                               | Bin 7060 -> 6108 bytes\r\n chocolatey/Website/Content/Images/AH_Logo_vertical.png                                  | Bin 39326 -> 20034 bytes\r\n chocolatey/Website/Content/Images/Chocolatey_Future.png                                 | Bin 323534 -> 307448 bytes\r\n chocolatey/Website/Content/Images/RealDimensionsLogo.png                                | Bin 5285 -> 5103 bytes\r\n chocolatey/Website/Content/Images/Turbo-on-Red.png                                      | Bin 1678 -> 1464 bytes\r\n chocolatey/Website/Content/Images/appharbor_logo.png                                    | Bin 3789 -> 3196 bytes\r\n chocolatey/Website/Content/Images/changePassword.png                                    | Bin 749 -> 719 bytes\r\n chocolatey/Website/Content/Images/circle_green_small.png                                | Bin 2258 -> 2040 bytes\r\n chocolatey/Website/Content/Images/circle_red_small.png                                  | Bin 2109 -> 2045 bytes\r\n chocolatey/Website/Content/Images/contribGraphic.png                                    | Bin 26015 -> 25042 bytes\r\n chocolatey/Website/Content/Images/copy.png                                              | Bin 577 -> 552 bytes\r\n chocolatey/Website/Content/Images/docs/Chocolatey_Future.png                            | Bin 432938 -> 310577 bytes\r\n chocolatey/Website/Content/Images/docs/Chocolatey_Talk.png                              | Bin 564463 -> 402899 bytes\r\n chocolatey/Website/Content/Images/docs/choco_info_cached.png                            | Bin 28987 -> 26383 bytes\r\n chocolatey/Website/Content/Images/docs/choco_install_cached.png                         | Bin 5648 -> 4999 bytes\r\n chocolatey/Website/Content/Images/docs/choco_integration.png                            | Bin 75483 -> 43200 bytes\r\n chocolatey/Website/Content/Images/docs/chocolateyicon.png                               | Bin 4991 -> 4949 bytes\r\n chocolatey/Website/Content/Images/docs/chocolateynhprofiler.png                         | Bin 29639 -> 25800 bytes\r\n chocolatey/Website/Content/Images/docs/chocopkgup/KetarinCustomCommand.png              | Bin 1890 -> 1745 bytes\r\n chocolatey/Website/Content/Images/docs/chocopkgup/KetarinJobSettings.png                | Bin 3701 -> 3195 bytes\r\n chocolatey/Website/Content/Images/docs/chocopkgup/KetarinMain.png                       | Bin 17924 -> 16309 bytes\r\n chocolatey/Website/Content/Images/docs/chocopkgup/KetarinSetVariables.png               | Bin 1867 -> 1646 bytes\r\n chocolatey/Website/Content/Images/docs/chocopkgup/KetarinSettings.png                   | Bin 4517 -> 3903 bytes\r\n chocolatey/Website/Content/Images/docs/chocopkgup/KetarinShowCustomField.png            | Bin 23323 -> 21169 bytes\r\n chocolatey/Website/Content/Images/docs/chocopkgup/KetarinVariables.png                  | Bin 16757 -> 14622 bytes\r\n chocolatey/Website/Content/Images/docs/chocopro_features_installdirectory.png           | Bin 47689 -> 44872 bytes\r\n chocolatey/Website/Content/Images/docs/cinst.png                                        | Bin 393 -> 379 bytes\r\n chocolatey/Website/Content/Images/docs/clistExample.png                                 | Bin 4137 -> 3706 bytes\r\n chocolatey/Website/Content/Images/docs/cup.png                                          | Bin 3735 -> 3388 bytes\r\n chocolatey/Website/Content/Images/docs/cverExample.png                                  | Bin 5193 -> 4626 bytes\r\n chocolatey/Website/Content/Images/docs/features/features_auto_uninstall.png             | Bin 67315 -> 29237 bytes\r\n chocolatey/Website/Content/Images/docs/features/features_install_upgrade_refreshenv.png | Bin 213801 -> 103172 bytes\r\n chocolatey/Website/Content/Images/docs/features/features_outdated.png                   | Bin 44508 -> 18009 bytes\r\n chocolatey/Website/Content/Images/docs/features/features_override_install_directory.png | Bin 89622 -> 40606 bytes\r\n chocolatey/Website/Content/Images/docs/features/features_packages_from_installers.png   | Bin 247917 -> 109322 bytes\r\n chocolatey/Website/Content/Images/docs/features/features_recompile_packages.png         | Bin 151403 -> 65482 bytes\r\n chocolatey/Website/Content/Images/docs/features/features_shimgen.png                    | Bin 200241 -> 90173 bytes\r\n chocolatey/Website/Content/Images/docs/features/features_software_audit.png             | Bin 95632 -> 38985 bytes\r\n chocolatey/Website/Content/Images/docs/features/features_synchronize.png                | Bin 70635 -> 28669 bytes\r\n chocolatey/Website/Content/Images/docs/features/features_upgrade.png                    | Bin 56019 -> 23648 bytes\r\n chocolatey/Website/Content/Images/docs/features/features_upgrade_everything.png         | Bin 148882 -> 64697 bytes\r\n chocolatey/Website/Content/Images/docs/git-tfs.png                                      | Bin 16407 -> 14395 bytes\r\n chocolatey/Website/Content/Images/docs/git-tfs2.png                                     | Bin 17518 -> 14497 bytes\r\n chocolatey/Website/Content/Images/docs/hero.png                                         | Bin 55308 -> 50177 bytes\r\n chocolatey/Website/Content/Images/docs/msysgit.png                                      | Bin 69811 -> 62257 bytes\r\n chocolatey/Website/Content/Images/docs/msysgit2.png                                     | Bin 56788 -> 49895 bytes\r\n chocolatey/Website/Content/Images/docs/statlight.png                                    | Bin 36969 -> 32464 bytes\r\n chocolatey/Website/Content/Images/docs/virus_scan_flagged.png                           | Bin 33058 -> 27853 bytes\r\n chocolatey/Website/Content/Images/docs/virus_scan_normal.png                            | Bin 6850 -> 5816 bytes\r\n chocolatey/Website/Content/Images/download.png                                          | Bin 218 -> 207 bytes\r\n chocolatey/Website/Content/Images/editIcon.png                                          | Bin 146 -> 141 bytes\r\n chocolatey/Website/Content/Images/editProfile.png                                       | Bin 245 -> 243 bytes\r\n chocolatey/Website/Content/Images/errorPage.png                                         | Bin 7707 -> 7360 bytes\r\n chocolatey/Website/Content/Images/greenArrow.png                                        | Bin 163 -> 160 bytes\r\n chocolatey/Website/Content/Images/green_ball_48.png                                     | Bin 3059 -> 2848 bytes\r\n chocolatey/Website/Content/Images/grey_ball_48.png                                      | Bin 2315 -> 1511 bytes\r\n chocolatey/Website/Content/Images/gui.png                                               | Bin 10964 -> 9206 bytes\r\n chocolatey/Website/Content/Images/headerbackground.png                                  | Bin 140 -> 140 bytes\r\n chocolatey/Website/Content/Images/hero.png                                              | Bin 46452 -> 42013 bytes\r\n chocolatey/Website/Content/Images/herowithlogo.png                                      | Bin 41850 -> 39806 bytes\r\n chocolatey/Website/Content/Images/icon_slogan.png                                       | Bin 60382 -> 44837 bytes\r\n chocolatey/Website/Content/Images/icon_slogan_transparent.png                           | Bin 48260 -> 43402 bytes\r\n chocolatey/Website/Content/Images/inputBackground.png                                   | Bin 103 -> 102 bytes\r\n chocolatey/Website/Content/Images/integration_points.old.png                            | Bin 82090 -> 74088 bytes\r\n chocolatey/Website/Content/Images/integration_points.png                                | Bin 116629 -> 70155 bytes\r\n chocolatey/Website/Content/Images/invalidBG.png                                         | Bin 147 -> 131 bytes\r\n chocolatey/Website/Content/Images/managePackages.png                                    | Bin 549 -> 527 bytes\r\n chocolatey/Website/Content/Images/mine.png                                              | Bin 1054 -> 1027 bytes\r\n chocolatey/Website/Content/Images/navbackground.png                                     | Bin 109 -> 108 bytes\r\n chocolatey/Website/Content/Images/newAccountGraphic.png                                 | Bin 2096 -> 1543 bytes\r\n chocolatey/Website/Content/Images/nothing-50x50.png                                     | Bin 86 -> 74 bytes\r\n chocolatey/Website/Content/Images/nugetLogoFooter.png                                   | Bin 5051 -> 5004 bytes\r\n chocolatey/Website/Content/Images/nugetlogo.png                                         | Bin 26633 -> 26287 bytes\r\n chocolatey/Website/Content/Images/packageDefaultIcon-50x50.png                          | Bin 2656 -> 2579 bytes\r\n chocolatey/Website/Content/Images/packageDefaultIcon.png                                | Bin 9263 -> 8595 bytes\r\n chocolatey/Website/Content/Images/packageOwnerActionIcons.png                           | Bin 495 -> 466 bytes\r\n chocolatey/Website/Content/Images/packagesDefaultIcon.png                               | Bin 668 -> 632 bytes\r\n chocolatey/Website/Content/Images/rd_logo.png                                           | Bin 2622 -> 2162 bytes\r\n chocolatey/Website/Content/Images/recommended.png                                       | Bin 644 -> 623 bytes\r\n chocolatey/Website/Content/Images/recommendedSmall.png                                  | Bin 423 -> 414 bytes\r\n chocolatey/Website/Content/Images/red_ball_48.png                                       | Bin 2981 -> 2866 bytes\r\n chocolatey/Website/Content/Images/required.png                                          | Bin 450 -> 438 bytes\r\n chocolatey/Website/Content/Images/searchButton.png                                      | Bin 376 -> 368 bytes\r\n chocolatey/Website/Content/Images/sendMessageGraphic.png                                | Bin 2745 -> 2163 bytes\r\n chocolatey/Website/Content/Images/stackexchange.png                                     | Bin 682 -> 630 bytes\r\n chocolatey/Website/Content/Images/trash.png                                             | Bin 153 -> 150 bytes\r\n chocolatey/Website/Content/Images/turbo-logo.png                                        | Bin 1546 -> 1525 bytes\r\n chocolatey/Website/Content/Images/turbo_logo.png                                        | Bin 2736 -> 2328 bytes\r\n chocolatey/Website/Content/Images/twitter.png                                           | Bin 437 -> 382 bytes\r\n chocolatey/Website/Content/Images/uploadPackage.png                                     | Bin 806 -> 771 bytes\r\n chocolatey/Website/Content/Images/userGraphic.png                                       | Bin 272 -> 266 bytes\r\n chocolatey/Website/Content/Images/userIcon.png                                          | Bin 153 -> 150 bytes\r\n chocolatey/Website/Content/Images/userIconWhite.png                                     | Bin 105 -> 103 bytes\r\n chocolatey/Website/Content/Images/xmark.png                                             | Bin 171 -> 168 bytes\r\n chocolatey/Website/Content/Images/yellow_ball_48.png                                    | Bin 2966 -> 2837 bytes\r\n nugetgallery/Website/Content/Images/YourPackage.png                                     | Bin 10354 -> 6749 bytes\r\n nugetgallery/Website/Content/Images/changePassword.png                                  | Bin 873 -> 717 bytes\r\n nugetgallery/Website/Content/Images/copy.png                                            | Bin 663 -> 550 bytes\r\n nugetgallery/Website/Content/Images/download.png                                        | Bin 235 -> 205 bytes\r\n nugetgallery/Website/Content/Images/editIcon.png                                        | Bin 146 -> 141 bytes\r\n nugetgallery/Website/Content/Images/editProfile.png                                     | Bin 3075 -> 2900 bytes\r\n nugetgallery/Website/Content/Images/errorPage.png                                       | Bin 12106 -> 10011 bytes\r\n nugetgallery/Website/Content/Images/greenArrow.png                                      | Bin 163 -> 160 bytes\r\n nugetgallery/Website/Content/Images/headerbackground.png                                | Bin 446 -> 205 bytes\r\n nugetgallery/Website/Content/Images/hero.png                                            | Bin 35437 -> 25391 bytes\r\n nugetgallery/Website/Content/Images/herowithlogo.png                                    | Bin 42543 -> 39806 bytes\r\n nugetgallery/Website/Content/Images/inputBackground.png                                 | Bin 107 -> 102 bytes\r\n nugetgallery/Website/Content/Images/invalidBG.png                                       | Bin 150 -> 132 bytes\r\n nugetgallery/Website/Content/Images/managePackages.png                                  | Bin 680 -> 531 bytes\r\n nugetgallery/Website/Content/Images/mine.png                                            | Bin 1187 -> 1027 bytes\r\n nugetgallery/Website/Content/Images/navbackground.png                                   | Bin 171 -> 109 bytes\r\n nugetgallery/Website/Content/Images/newAccountGraphic.png                               | Bin 2097 -> 1543 bytes\r\n nugetgallery/Website/Content/Images/nugetLogoFooter.png                                 | Bin 5108 -> 5004 bytes\r\n nugetgallery/Website/Content/Images/nugetlogo.png                                       | Bin 12664 -> 11734 bytes\r\n nugetgallery/Website/Content/Images/packageDefaultIcon-50x50.png                        | Bin 2656 -> 2579 bytes\r\n nugetgallery/Website/Content/Images/packageDefaultIcon.png                              | Bin 9263 -> 8595 bytes\r\n nugetgallery/Website/Content/Images/packageOwnerActionIcons.png                         | Bin 522 -> 507 bytes\r\n nugetgallery/Website/Content/Images/packagesDefaultIcon.png                             | Bin 964 -> 632 bytes\r\n nugetgallery/Website/Content/Images/recommended.png                                     | Bin 644 -> 623 bytes\r\n nugetgallery/Website/Content/Images/recommendedSmall.png                                | Bin 423 -> 414 bytes\r\n nugetgallery/Website/Content/Images/required.png                                        | Bin 516 -> 438 bytes\r\n nugetgallery/Website/Content/Images/searchButton.png                                    | Bin 3371 -> 3019 bytes\r\n nugetgallery/Website/Content/Images/sendMessageGraphic.png                              | Bin 2745 -> 2163 bytes\r\n nugetgallery/Website/Content/Images/trash.png                                           | Bin 153 -> 150 bytes\r\n nugetgallery/Website/Content/Images/uploadPackage.png                                   | Bin 3542 -> 3427 bytes\r\n nugetgallery/Website/Content/Images/userGraphic.png                                     | Bin 765 -> 581 bytes\r\n nugetgallery/Website/Content/Images/userIcon.png                                        | Bin 161 -> 159 bytes\r\n nugetgallery/Website/Content/Images/userIconWhite.png                                   | Bin 131 -> 103 bytes\r\n nugetgallery/Website/Content/Images/xmark.png                                           | Bin 177 -> 170 bytes\r\n```"},"comment":{"url":"https://api.github.com/repos/chocolatey/chocolatey.org/issues/comments/233355443","html_url":"https://github.com/chocolatey/chocolatey.org/pull/407#issuecomment-233355443","issue_url":"https://api.github.com/repos/chocolatey/chocolatey.org/issues/407","id":233355443,"user":{"login":"ferventcoder","id":63502,"avatar_url":"https://avatars.githubusercontent.com/u/63502?v=3","gravatar_id":"","url":"https://api.github.com/users/ferventcoder","html_url":"https://github.com/ferventcoder","followers_url":"https://api.github.com/users/ferventcoder/followers","following_url":"https://api.github.com/users/ferventcoder/following{/other_user}","gists_url":"https://api.github.com/users/ferventcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ferventcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferventcoder/subscriptions","organizations_url":"https://api.github.com/users/ferventcoder/orgs","repos_url":"https://api.github.com/users/ferventcoder/repos","events_url":"https://api.github.com/users/ferventcoder/events{/privacy}","received_events_url":"https://api.github.com/users/ferventcoder/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T15:02:33Z","updated_at":"2016-07-18T15:02:33Z","body":"Let me show you a similar script - optimizeImages.ps1 (at top level of repo):\r\n\r\n~~~powershell\r\n\r\n$scriptDir = $(Split-Path -parent $MyInvocation.MyCommand.Definition)\r\n$webTopDirectory = '.\\chocolatey\\Website\\'\r\n\r\nchoco install pngoptimizer.commandline\r\n\r\n# get all files that meet *.png pattern\r\nGet-ChildItem \"$webTopDirectory\" -Filter *.png -Recurse | %{\r\n  & pngoptimizercl -file:\"$($_.FullName)\" -IgnoreAnimatedGifs \r\n}\r\n~~~"}}
{"actor":{"display_login":"ferventcoder"}}