{"id":18353018,"url":"https://github.com/thecodeholic/bulkimageresize","last_synced_at":"2025-04-06T11:33:13.219Z","repository":{"id":57067820,"uuid":"239294750","full_name":"thecodeholic/BulkImageResize","owner":"thecodeholic","description":"Resize all images inside specific folder","archived":false,"fork":false,"pushed_at":"2020-02-12T13:05:02.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-21T22:41:28.527Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thecodeholic.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}},"created_at":"2020-02-09T11:41:30.000Z","updated_at":"2021-05-23T05:10:02.000Z","dependencies_parsed_at":"2022-08-24T14:54:08.070Z","dependency_job_id":null,"html_url":"https://github.com/thecodeholic/BulkImageResize","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodeholic%2FBulkImageResize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodeholic%2FBulkImageResize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodeholic%2FBulkImageResize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodeholic%2FBulkImageResize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodeholic","download_url":"https://codeload.github.com/thecodeholic/BulkImageResize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478152,"owners_count":20945258,"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":[],"created_at":"2024-11-05T21:38:11.259Z","updated_at":"2025-04-06T11:33:12.882Z","avatar_url":"https://github.com/thecodeholic.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bulk Image resize\nUsing this package you can resize all images inside specific folder\n\n## Usage\nPut images inside `images` folder and run `php index.php` from the\nproject's root directory.\n\nIf you want to integrate this into your project use class ImageResize\n\n```php\n$resizer = new ImageResize();\n$resizer-\u003eresizeAllImages('directory under which you want to resize');\n```\n\n### Options\n\n```php\n// The image width which will be used to create thumbnails\n$imageWidth = 128;\n// Extensions to check each file against before trying to resize\n$extensions = ['jpg', 'png'];\n\n$resizer = new ImageResize($imageWidth, $extensions);\n$resizer-\u003eresizeAllImages('directory under which you want to resize');\n```\n\n### Events\n\n```php\n$resizer = new ImageResize($imageWidth, $extensions);\n\n// Before resizing the image\n$resizer-\u003eonBeforeResize(function($path){\n    echo \"Before resize \" . $path . PHP_EOL;\n});\n// After resizing the image\n$resizer-\u003eonAfterResize(function($path){\n    echo \"After resize \" . $path . PHP_EOL;\n});\n\n$resizer-\u003eresizeAllImages('directory under which you want to resize');\n```\n\n### This project is part of the youtube video\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodeholic%2Fbulkimageresize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodeholic%2Fbulkimageresize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodeholic%2Fbulkimageresize/lists"}