{"id":37008449,"url":"https://github.com/justbetter/magento2-image-optimizer","last_synced_at":"2026-01-14T00:50:02.525Z","repository":{"id":57003202,"uuid":"128405581","full_name":"justbetter/magento2-image-optimizer","owner":"justbetter","description":"This Magento 2 module is a wrapper based on the package https://github.com/spatie/image-optimizer","archived":true,"fork":false,"pushed_at":"2018-12-07T12:13:00.000Z","size":19,"stargazers_count":42,"open_issues_count":2,"forks_count":10,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-08-25T01:37:23.351Z","etag":null,"topics":["image-processing","magento2","magento2-extension","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/justbetter.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-04-06T14:29:16.000Z","updated_at":"2025-06-03T10:44:37.000Z","dependencies_parsed_at":"2022-08-21T14:50:38.933Z","dependency_job_id":null,"html_url":"https://github.com/justbetter/magento2-image-optimizer","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/justbetter/magento2-image-optimizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justbetter%2Fmagento2-image-optimizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justbetter%2Fmagento2-image-optimizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justbetter%2Fmagento2-image-optimizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justbetter%2Fmagento2-image-optimizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justbetter","download_url":"https://codeload.github.com/justbetter/magento2-image-optimizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justbetter%2Fmagento2-image-optimizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28407136,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["image-processing","magento2","magento2-extension","php"],"created_at":"2026-01-14T00:50:01.826Z","updated_at":"2026-01-14T00:50:02.513Z","avatar_url":"https://github.com/justbetter.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Magento 2 Image Optimizer\n\nThis Magento 2 module is a wrapper based on the package [Spatie Image optimizer](https://github.com/spatie/image-optimizer).\n\n## Installation\n- `composer require justbetter/magento2-image-optimizer`\n- `bin/magento module:enable JustBetter_ImageOptimizer`\n- `bin/magento setup:upgrade \u0026\u0026 bin/magento setup:static-content:deploy`\n\n### Optimize all images in console\n- Run `bin/magento justbetter:imageoptimizer:optimizeall` to resize all images in the media folder.\n- Additional parameters (will overwrite any option in the magento config):\n    - `--jpg_compression=\"85\"`\n    - `--jpg_strip_all=\"1\"`\n    - `--jpg_all_progressive=\"0\"`\n    - `--png_quality_min_max=\"10-15\"`\n    - `--png_interlace=\"0\"`\n    - `--png_optimization_level=\"8\"`\n\n### Optimization tools\n\nThe package will use these optimizers if they are present on your system:\n\n- [JpegOptim](http://freecode.com/projects/jpegoptim)\n- [Optipng](http://optipng.sourceforge.net/)\n- [Pngquant 2](https://pngquant.org/)\n- [SVGO](https://github.com/svg/svgo)\n- [Gifsicle](http://www.lcdf.org/gifsicle/)\n\nHere's how to install all the optimizers on Ubuntu:\n\n```bash\nsudo apt-get install jpegoptim\nsudo apt-get install optipng\nsudo apt-get install pngquant\nsudo npm install -g svgo\nsudo apt-get install gifsicle\n```\n\nAnd here's how to install the binaries on MacOS (using [Homebrew](https://brew.sh/)):\n\n```bash\nbrew install jpegoptim\nbrew install optipng\nbrew install pngquant\nbrew install svgo\nbrew install gifsicle\n```\n\n## Configuration\n- Options for the module are defined in the backend under Stores \u003e Configuration \u003e JustBetter \u003e Image optimizer configuration.\n- Possible options:\n    - Log the compression in the system.log\n    - Change compression of jpg files\n    - Change compression of png files\n\n## Compatibility\nThe module is tested on magento version 2.2.x with Spatie image optimizer version 1.0.x\n\n## Ideas, bugs or suggestions?\nPlease create a [issue](https://github.com/justbetter/magento2-image-optimizer/issues) or a [pull request](https://github.com/justbetter/magento2-image-optimizer/pulls).\n\n## Todo\n- ~~Configurable options for compression~~\n- ~~Compress all library images in console command~~\n\n## About us\nWe’re a innovative development agency from The Netherlands building awesome websites, webshops and web applications with Laravel and Magento. Check out our website [justbetter.nl](https://justbetter.nl) and our [open source projects](https://github.com/justbetter).\n\n## License\n[MIT](LICENSE)\n\n---\n\n\u003ca href=\"https://justbetter.nl\" title=\"JustBetter\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/justbetter/art/master/justbetter-logo.png\" width=\"200px\" alt=\"JustBetter logo\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustbetter%2Fmagento2-image-optimizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustbetter%2Fmagento2-image-optimizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustbetter%2Fmagento2-image-optimizer/lists"}