{"id":13578941,"url":"https://github.com/spatie/image","last_synced_at":"2026-01-07T13:14:52.942Z","repository":{"id":16728585,"uuid":"80513668","full_name":"spatie/image","owner":"spatie","description":"Manipulate images with an expressive API","archived":false,"fork":false,"pushed_at":"2025-05-12T04:11:26.000Z","size":20620,"stargazers_count":1301,"open_issues_count":2,"forks_count":132,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-05-12T05:24:40.416Z","etag":null,"topics":["gd","image","imagick","php"],"latest_commit_sha":null,"homepage":"https://freek.dev/2619-new-major-versions-for-spatieimage-and-laravel-media-library-have-been-released","language":"PHP","has_issues":false,"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/spatie.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"spatie","custom":"https://spatie.be/open-source/support-us"}},"created_at":"2017-01-31T11:14:22.000Z","updated_at":"2025-05-12T04:11:23.000Z","dependencies_parsed_at":"2024-03-01T10:25:46.608Z","dependency_job_id":"adb20754-628a-4489-a293-8d6b12650f64","html_url":"https://github.com/spatie/image","commit_stats":{"total_commits":278,"total_committers":54,"mean_commits":5.148148148148148,"dds":0.4784172661870504,"last_synced_commit":"45b1f88a292389ad8a76c2fa61ae87d66fef9ec2"},"previous_names":[],"tags_count":86,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Fimage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Fimage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Fimage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Fimage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spatie","download_url":"https://codeload.github.com/spatie/image/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253746365,"owners_count":21957540,"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":["gd","image","imagick","php"],"created_at":"2024-08-01T15:01:35.197Z","updated_at":"2026-01-07T13:14:52.937Z","avatar_url":"https://github.com/spatie.png","language":"PHP","funding_links":["https://github.com/sponsors/spatie","https://spatie.be/open-source/support-us"],"categories":["PHP"],"sub_categories":[],"readme":"\u003cdiv align=\"left\"\u003e\n    \u003ca href=\"https://spatie.be/open-source?utm_source=github\u0026utm_medium=banner\u0026utm_campaign=image\"\u003e\n      \u003cpicture\u003e\n        \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://spatie.be/packages/header/image/html/dark.webp\"\u003e\n        \u003cimg alt=\"Logo for image\" src=\"https://spatie.be/packages/header/image/html/light.webp\"\u003e\n      \u003c/picture\u003e\n    \u003c/a\u003e\n\n\u003ch1\u003eManipulate images with an expressive API\u003c/h1\u003e\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/spatie/image.svg?style=flat-square)](https://packagist.org/packages/spatie/image)\n[![MIT Licensed](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/spatie/image/run-tests.yml?label=tests)](https://github.com/spatie/image/actions/workflows/run-tests.yml)\n[![Total Downloads](https://img.shields.io/packagist/dt/spatie/image.svg?style=flat-square)](https://packagist.org/packages/spatie/image)\n    \n\u003c/div\u003e\n\nImage manipulation doesn't have to be hard. Here are a few examples on how this package makes it very easy to manipulate images.\n\n```php\nuse Spatie\\Image\\Image;\n\n// modifying the image so it fits in a 100x100 rectangle without altering aspect ratio\nImage::load($pathToImage)\n   -\u003ewidth(100)\n   -\u003eheight(100)\n   -\u003esave($pathToNewImage);\n   \n// overwriting the original image with a greyscale version   \nImage::load($pathToImage)\n   -\u003egreyscale()\n   -\u003esave();\n   \n// make image darker and save it in low quality\nImage::load($pathToImage)\n   -\u003ebrightness(-30)\n   -\u003equality(25)\n   -\u003esave();\n   \n// rotate the image and sharpen it\nImage::load($pathToImage)\n   -\u003eorientation(90)\n   -\u003esharpen(15)\n   -\u003esave();\n```\n\nYou'll find more examples in [the full documentation](https://docs.spatie.be/image).\n\n## Support us\n\n[\u003cimg src=\"https://github-ads.s3.eu-central-1.amazonaws.com/image.jpg?t=1\" width=\"419px\" /\u003e](https://spatie.be/github-ad-click/image)\n\nWe invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).\n\nWe highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).\n\n## Installation\n\nYou can install the package via composer:\n\n``` bash\ncomposer require spatie/image\n```\n\nPlease note that since version 1.5.3 this package requires exif extension to be enabled: http://php.net/manual/en/exif.installation.php\n\n## Usage\n\nHead over to [the full documentation](https://spatie.be/docs/image).\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Testing\n\n``` bash\nnpm i pixelmatch\ncomposer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.\n\n## Security\n\nIf you've found a bug regarding security please mail [security@spatie.be](mailto:security@spatie.be) instead of using the issue tracker.\n\n## Postcardware\n\nYou're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.\n\nOur address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium.\n\nWe publish all received postcards [on our company website](https://spatie.be/en/opensource/postcards).\n\n## Credits\n\n- [Freek Van der Herten](https://github.com/freekmurze)\n- [All Contributors](../../contributors)\n\nLarge parts of this codebase were copied from [Intervention Image](https://image.intervention.io/v3) by [Oliver Vogel](https://github.com/olivervogel), and modified for readability and to fit our needs.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspatie%2Fimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspatie%2Fimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspatie%2Fimage/lists"}