{"id":31832226,"url":"https://github.com/fostercommerce/imagerx-imgproxy","last_synced_at":"2025-10-11T22:59:53.126Z","repository":{"id":288667975,"uuid":"968842594","full_name":"FosterCommerce/imagerx-imgproxy","owner":"FosterCommerce","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-21T14:47:12.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-11T10:49:24.451Z","etag":null,"topics":[],"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/FosterCommerce.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-18T20:51:14.000Z","updated_at":"2025-04-21T14:40:24.000Z","dependencies_parsed_at":"2025-04-20T12:47:24.720Z","dependency_job_id":null,"html_url":"https://github.com/FosterCommerce/imagerx-imgproxy","commit_stats":null,"previous_names":["fostercommerce/imagerx-imgproxy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FosterCommerce/imagerx-imgproxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FosterCommerce%2Fimagerx-imgproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FosterCommerce%2Fimagerx-imgproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FosterCommerce%2Fimagerx-imgproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FosterCommerce%2Fimagerx-imgproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FosterCommerce","download_url":"https://codeload.github.com/FosterCommerce/imagerx-imgproxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FosterCommerce%2Fimagerx-imgproxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279009179,"owners_count":26084555,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-10-11T22:59:52.209Z","updated_at":"2025-10-11T22:59:53.122Z","avatar_url":"https://github.com/FosterCommerce.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Imager X Imgproxy Transformer\n\nThis module provides an [imgproxy](https://imgproxy.net/) transformer for [Imager X](https://github.com/spacecatninja/craft-imager-x).\n\n## Requirements\n\n- Craft CMS 5.0.0+\n- Imager X 5.1.0+\n- PHP 8.2+\n\n## Installation\n\n```bash\ncomposer require fostercommerce/imagerx-imgproxy\nphp craft plugin/install imagerx-imgproxy\n```\n\n## Configuration\n\nAdd the imgproxy configuration to your Imager X Imgproxy transformer config file (`config/imagerx-imgproxy.php`):\n\n```php\nreturn [\n    'baseUrl' =\u003e getenv('IMGPROXY_BASE_URL'),\n    'key' =\u003e getenv('IMGPROXY_KEY') ?: null,\n    'salt' =\u003e getenv('IMGPROXY_SALT') ?: null,\n    'customSignature' =\u003e getenv('IMGPROXY_CUSTOM_SIGNATURE') ?: null,\n    'encoded' =\u003e true,\n    'defaultParams' =\u003e [],\n];\n```\n\n## Usage\n\nOnce installed and configured, you can use the transformer with Imager X:\n\n```twig\n{% set transformedImages = craft.imagerx.transformImage(rawImage, [\n  { width: 74, height: 74 },\n  { width: 120, height: 120 },\n  { width: 172, height: 172 },\n  { width: 254, height: 254 }\n], {\n  mode: 'crop',\n  transformerParams: {\n    padding: 10,\n    background: '255:0:0',\n  },\n}) %}\n```\n\n## Notes\n\nTake a look at the Imgproxy [processing options](https://docs.imgproxy.net/usage/processing#processing-options) for a list of available options to use in the `defaultParams` and `transformerParams` arrays.\n\nThis transformer uses [fostercommerce/imgproxy](https://github.com/fostercommerce/imgproxy-php) under the hood. Take a look there for more usage information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffostercommerce%2Fimagerx-imgproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffostercommerce%2Fimagerx-imgproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffostercommerce%2Fimagerx-imgproxy/lists"}