{"id":22447361,"url":"https://github.com/marketingpipeline/image-optimizer-action","last_synced_at":"2025-07-06T12:33:18.564Z","repository":{"id":44982231,"uuid":"512713283","full_name":"MarketingPipeline/Image-Optimizer-Action","owner":"MarketingPipeline","description":"A Github Action to optimize / compress images in your repository","archived":false,"fork":false,"pushed_at":"2022-08-11T05:13:39.000Z","size":34,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2023-03-05T04:58:08.457Z","etag":null,"topics":["actions","compress-image","compress-images","github","github-action","github-actions","github-workflows","image-compression","image-compressor","image-optimizer","image-processing","optimize-images","photo-compression","workflows"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MarketingPipeline.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-11T10:34:26.000Z","updated_at":"2023-03-04T04:18:01.000Z","dependencies_parsed_at":"2022-07-12T21:50:33.536Z","dependency_job_id":null,"html_url":"https://github.com/MarketingPipeline/Image-Optimizer-Action","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarketingPipeline%2FImage-Optimizer-Action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarketingPipeline%2FImage-Optimizer-Action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarketingPipeline%2FImage-Optimizer-Action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarketingPipeline%2FImage-Optimizer-Action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarketingPipeline","download_url":"https://codeload.github.com/MarketingPipeline/Image-Optimizer-Action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228407850,"owners_count":17915083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","compress-image","compress-images","github","github-action","github-actions","github-workflows","image-compression","image-compressor","image-optimizer","image-processing","optimize-images","photo-compression","workflows"],"created_at":"2024-12-06T04:16:13.680Z","updated_at":"2025-07-06T12:33:18.556Z","avatar_url":"https://github.com/MarketingPipeline.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image-Optimizer-Action\n\n\u003cp align=\"center\"\u003e\n  \u003cimg height=\"400\" src=\"https://capsule-render.vercel.app/api?type=waving\u0026color=03a9f4\u0026height=300\u0026section=header\u0026text=Image%20Optimizer%20Action\u0026fontSize=60\u0026fontColor=ffffff\u0026animation=fadeIn\u0026fontAlignY=38\u0026desc=Created%20by%20github.com/MarketingPipeline%20\u0026descAlignY=51\u0026descAlign=50\" /\u003e\n\u003c/p\u003e\n\u003cdiv align=\"center\"\u003e\nA Github Action to optimize  to optimize / compress images\n  \n  \n   \u003cbr\u003e\n  \u003csmall\u003e \u003cb\u003e\u003ci\u003eShow your support!\u003c/i\u003e \u003c/b\u003e\u003c/small\u003e\n  \u003cbr\u003e\n   \u003ca href=\"https://github.com/MarketingPipeline/Image-Optimizer-Action\"\u003e\n    \u003cimg title=\"Star on GitHub\" src=\"https://img.shields.io/github/stars/MarketingPipeline/Image-Optimizer-Action.svg?style=social\u0026label=Star\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/MarketingPipeline/Image-Optimizer-Action/fork\"\u003e\n    \u003cimg title=\"Fork on GitHub\" src=\"https://img.shields.io/github/forks/MarketingPipeline/Image-Optimizer-Action.svg?style=social\u0026label=Fork\"\u003e\n  \u003c/a\u003e\n   \u003c/p\u003e  \n \u003c/div\u003e\n\n\n\n\t\n\n## Example and usage\n\n\n\u003cdetails\u003e\n\u003csummary\u003e View Example Of Image Compression Results \u003c/summary\u003e\n\n\u003cbr\u003e\n\n         ✅  [OPTIMIZED] ./image_1.png                                                   \n             PNG/RGBA: 516.6 KB  -\u003e  PNG/RGBA: 490.8 KB 🔻 5.0%\n         ✅  [OPTIMIZED] ./image_2.png                                               \n             PNG/RGBA: 771.8 KB  -\u003e  PNG/RGBA: 741.5 KB 🔻 3.9%\n         ✅  [OPTIMIZED] ./image_3.png                                                    \n             PNG/RGBA: 737.3 KB  -\u003e  PNG/RGBA: 707.8 KB 🔻 4.0%\n         ✅  [OPTIMIZED] ./image_4.png                                                    \n             PNG/RGBA: 31.4 KB  -\u003e  PNG/RGBA: 30.7 KB 🔻 2.3%\n         ✅  [OPTIMIZED] ./image_5.png                                        \n             PNG/RGBA: 203.9 KB  -\u003e  PNG/RGBA: 200.0 KB 🔻 1.9%\n         ✅  [OPTIMIZED] ./image_6.png                                          \n             PNG/RGBA: 534.2 KB  -\u003e  PNG/RGBA: 514.5 KB 🔻 3.7%\n             ----------------------------------------\n             Processed 6 files (2.7 MB) in 4.3s (1.4 f/s).\n             Optimized 6 files.\n             Average savings: 18.3 KB per optimized file\n             Total space saved: 109.9 KB / 3.9%\n\n\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003eHow to use this action\u003c/summary\u003e\n\u003cbr\u003e\u003cbr\u003e     \n\n\u003cb\u003e\u003ci\u003eNote:\u003c/b\u003e\u003c/i\u003e By DEFAULT all supported image file types in the root of your repo excluding sub-folders will be optimized. (SVG images are NOT supported)\n\n\u003cbr\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e \nTo optimize a single image file:\n\u003c/summary\u003e\n\n\u003cbr\u003e\n\n\n       - uses: MarketingPipeline/Image-Optimizer-Action@latest\n         with:\n           filename: filename.jpg\n       \n\n\n\u003c/details\u003e\n\n\u003cbr\u003e\u003cbr\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e       \nTo optimize all image files in a directory and all of its subdirectories:\n\u003c/summary\u003e\n\n\u003cbr\u003e\n\n       - uses: MarketingPipeline/Image-Optimizer-Action@latest\n         with:\n           filename: /example_folder_path/\n           recursion: true\n\n\n\n\n\u003c/details\u003e\n\n\u003cbr\u003e\u003cbr\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\nTo optimize all image files in a directory, without recursion:\n\u003c/summary\u003e\n\n\u003cbr\u003e\n\n       - uses: MarketingPipeline/Image-Optimizer-Action@latest\n         with:\n           filename: /example_folder_path/\n\n\n\n\u003c/details\u003e\n\n\u003cbr\u003e\u003cbr\u003e\n\n\n\n\u003cdetails\u003e\n\u003csummary\u003eWorkflow Example(s)\u003c/summary\u003e\n\n\u003cbr\u003e\u003cbr\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e View Example \u003cb\u003eWorkflow Usage\u003c/b\u003e\u003c/summary\u003e \n\u003cbr\u003e\u003cbr\u003e\n\n    - uses: actions/checkout@v2\n    - uses: MarketingPipeline/Image-Optimizer-Action@latest\n \n    - name: Commit and Push Optimized Images\n      run: |\n         git config --global user.name \"github-actions[bot]\"\n         git config --global user.email \"41898282+github-actions[bot]@users.noreply.github.com\"\n         git add -A\n         git commit -m \"Added Optimized Images\"\n         git push\n         \n\u003c/details\u003e\n\n\u003cbr\u003e\n\nExample [workflow file](.github/workflows/example_workflow.yaml)         \n\n\u003c/details\u003e\n\n\n\n\u003cbr\u003e\u003cbr\u003e\n\n\n\u003c/details\u003e\n\n\n## Contributing ![GitHub](https://img.shields.io/github/contributors/MarketingPipeline/Image-Optimizer-Action)\n\nWant to imrpove this action? Create a pull request with described in detail with your changes! If approved you will be added to the list of contributors of this awesome project!\n\nSee also the list of\n[contributors](https://github.com/MarketingPipeline/Image-Optimizer-Action/graphs/contributors) who\nparticipate in this project.\n\n## License ![GitHub](https://img.shields.io/github/license/MarketingPipeline/Image-Optimizer-Action)\n\nThis project is licensed under the MIT License - see the\n[LICENSE.md](https://github.com/MarketingPipeline/Image-Optimizer-Action/blob/main/LICENSE) file for\ndetails.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarketingpipeline%2Fimage-optimizer-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarketingpipeline%2Fimage-optimizer-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarketingpipeline%2Fimage-optimizer-action/lists"}