{"id":15345544,"url":"https://github.com/akrabat/bref-image-resizer","last_synced_at":"2025-10-11T00:30:38.612Z","repository":{"id":137245098,"uuid":"186808983","full_name":"akrabat/bref-image-resizer","owner":"akrabat","description":"Serverless PHP (Bref/Lambda) function to resize an image on upload to an S3 bucket ","archived":true,"fork":false,"pushed_at":"2019-05-15T14:56:32.000Z","size":10,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-28T11:38:16.985Z","etag":null,"topics":["bref","lambda","php","s3","serverless"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","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/akrabat.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-15T11:02:48.000Z","updated_at":"2024-08-20T15:51:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"574e17a2-dd08-4c16-a8f3-5b10dcc3a799","html_url":"https://github.com/akrabat/bref-image-resizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/akrabat/bref-image-resizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akrabat%2Fbref-image-resizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akrabat%2Fbref-image-resizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akrabat%2Fbref-image-resizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akrabat%2Fbref-image-resizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akrabat","download_url":"https://codeload.github.com/akrabat/bref-image-resizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akrabat%2Fbref-image-resizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005659,"owners_count":26083942,"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-10T02:00:06.843Z","response_time":62,"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":["bref","lambda","php","s3","serverless"],"created_at":"2024-10-01T11:13:55.126Z","updated_at":"2025-10-11T00:30:38.607Z","avatar_url":"https://github.com/akrabat.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bref-image-resizer\n\nWhen an image is uploaded to the S3 bucket, then this lambda is triggered which will create a thumbnail version and\nupload it back into the S3 bucket.\n\n## Installation\n\n* Copy `Makefile.dist` to `Makefile` and change `UNIQUE_KEY`.\n* `composer install`\n* `make setup`\n* `make deploy`\n\n## To run\n* Upload an image file into your `-images` bucket.\n* Wait a second or two.\n* List the files in the S3 bucket and see that the `-thumb` version now exists.\n  (Check the logs if it doesn't turn up using `make lastlog`.)\n\n## Notes\n\n* This function uses [Bref](https://bref.sh).\n* This function needs Imagick which is provided by a separate layer.\n* This function is called by S3 whenever a new file is added to the bucket, so we have to check that we don't resize the thumbnail files!\n ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakrabat%2Fbref-image-resizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakrabat%2Fbref-image-resizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakrabat%2Fbref-image-resizer/lists"}