{"id":13396059,"url":"https://github.com/spatie/laravel-glide","last_synced_at":"2025-05-15T14:07:05.515Z","repository":{"id":26040919,"uuid":"29484127","full_name":"spatie/laravel-glide","owner":"spatie","description":"Easily convert images with Glide","archived":false,"fork":false,"pushed_at":"2024-03-23T06:47:43.000Z","size":862,"stargazers_count":420,"open_issues_count":0,"forks_count":51,"subscribers_count":16,"default_branch":"main","last_synced_at":"2024-07-31T18:16:25.081Z","etag":null,"topics":["convert","glide","image","laravel","manipulate","php"],"latest_commit_sha":null,"homepage":"https://freek.dev/2015/12/easily-convert-images-with-glide/","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/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},"funding":{"custom":"https://spatie.be/open-source/support-us"}},"created_at":"2015-01-19T18:07:18.000Z","updated_at":"2024-07-17T01:16:24.000Z","dependencies_parsed_at":"2024-06-18T11:10:02.392Z","dependency_job_id":"e8f9ec09-d811-4e48-b362-03693b38a9cf","html_url":"https://github.com/spatie/laravel-glide","commit_stats":{"total_commits":201,"total_committers":22,"mean_commits":9.136363636363637,"dds":"0.28358208955223885","last_synced_commit":"29f30259647c84c849c9303628df362cc567c34b"},"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Flaravel-glide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Flaravel-glide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Flaravel-glide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Flaravel-glide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spatie","download_url":"https://codeload.github.com/spatie/laravel-glide/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254355335,"owners_count":22057354,"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":["convert","glide","image","laravel","manipulate","php"],"created_at":"2024-07-30T18:00:38.660Z","updated_at":"2025-05-15T14:07:00.501Z","avatar_url":"https://github.com/spatie.png","language":"PHP","funding_links":["https://spatie.be/open-source/support-us"],"categories":["Popular Packages","Paquetes utiles"],"sub_categories":[],"readme":"# Easily convert images with Glide\n[![Latest Version](https://img.shields.io/github/release/spatie/laravel-glide.svg?style=flat-square)](https://github.com/spatie/laravel-glide/releases)\n[![run-tests](https://github.com/spatie/laravel-glide/actions/workflows/run-tests.yml/badge.svg)](https://github.com/spatie/laravel-glide/actions/workflows/run-tests.yml)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Total Downloads](https://img.shields.io/packagist/dt/spatie/laravel-glide.svg?style=flat-square)](https://packagist.org/packages/spatie/laravel-glide)\n\nThis package provides an easy to use class to manipulate images. Under the hood it leverages [Glide](http://glide.thephpleague.com/) to perform \nthe manipulations.\n\nHere's an example of how the package can be used:\n\n```php\nGlideImage::create($pathToImage)\n\t-\u003emodify(['w'=\u003e 50, 'filt'=\u003e'greyscale'])\n\t-\u003esave($pathToWhereToSaveTheManipulatedImage);\n```\n\n## Support us\n\nLearn how to create a package like this one, by watching our premium video course:\n\n[![Laravel Package training](https://spatie.be/github/package-training.jpg)](https://laravelpackage.training)\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 through Composer.\n\n```bash\ncomposer require spatie/laravel-glide\n```\n\nIn Laravel 5.5 the service provider and facade will automatically get registered. In older versions of the framework just add the service provider and facade in `config/app.php` file:\n\n```php\n'providers' =\u003e [\n    ...\n    Spatie\\Glide\\GlideServiceProvider::class,\n    ...\n];\n\n...\n\n'aliases' =\u003e [\n\t...\n    'GlideImage' =\u003e Spatie\\Glide\\GlideImageFacade::class,\n    ...\n]\n```\n\n\nYou can publish the config file of the package using artisan.\n\n```bash\nphp artisan vendor:publish --provider=\"Spatie\\Glide\\GlideServiceProvider\"\n```\n\nThe config file looks like this:\n```php\n\n\u003c?php\n\nreturn [\n\n    /*\n     * The driver that will be used to create images. Can be set to gd or imagick.\n     */\n    'driver' =\u003e 'gd',\n];\n\n```\n## Usage \n\nHere's a quick example that shows how an image can be modified:\n\n```php\nGlideImage::create($pathToImage)\n\t-\u003emodify(['w'=\u003e 50, 'filt'=\u003e'greyscale'])\n\t-\u003esave($pathToWhereToSaveTheManipulatedImage);\n```\n\nTake a look at [Glide's image API](http://glide.thephpleague.com/1.0/api/quick-reference/) to see which parameters you can pass to the `modify`-method.\n\n## Testing\n\nYou can run the tests with:\n\n```bash\ncomposer test\n```\n\n### Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Previous versions\n\nPrevious versions of this package had PHP 5.4 support and the ability to generate \nimages on the fly from an url.\n\nThe previous versions are unsupported, but they should still work in your older projects.\n\n- [Version 2 branch with Laravel 5 support](https://github.com/spatie/laravel-glide/tree/v2)\n- [Version 1 branch with Laravel 4 support](https://github.com/spatie/laravel-glide/tree/laravel-4)\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## Credits\n\n- [Freek Van der Herten](https:/murze.be)\n- [All Contributors](https://github.com/freekmurze/laravel-glide/contributors)\n\n## License\n\nThe MIT License (MIT). Please see [LICENSE](https://github.com/freekmurze/laravel-glide/blob/master/LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspatie%2Flaravel-glide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspatie%2Flaravel-glide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspatie%2Flaravel-glide/lists"}