PHPackages                             spatie/laravel-glide - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. spatie/laravel-glide

ActiveLibrary[Image &amp; Media](/categories/media)

spatie/laravel-glide
====================

Easily convert images with Glide

3.8.2(2mo ago)451905.6k—0.8%5116MITPHPPHP ^7.4|^8.0CI passing

Since Jan 19Pushed 2mo ago13 watchersCompare

[ Source](https://github.com/spatie/laravel-glide)[ Packagist](https://packagist.org/packages/spatie/laravel-glide)[ Docs](https://github.com/spatie/laravel-glide)[ Fund](https://spatie.be/open-source/support-us)[ RSS](/packages/spatie-laravel-glide/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (44)Used By (16)

Easily convert images with Glide
================================

[](#easily-convert-images-with-glide)

[![Latest Version](https://camo.githubusercontent.com/172b30fe185eb535fb0228ac58ce21eb264442029aff276e82a6ca67b8ffcd97/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7370617469652f6c61726176656c2d676c6964652e7376673f7374796c653d666c61742d737175617265)](https://github.com/spatie/laravel-glide/releases)[![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)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/852f09a352ac665a1ef76e9505bb40f398c23d7ff953fe4daa07a836977cc2b2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f6c61726176656c2d676c6964652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/laravel-glide)

This package provides an easy to use class to manipulate images. Under the hood it leverages [Glide](http://glide.thephpleague.com/) to perform the manipulations.

Here's an example of how the package can be used:

```
GlideImage::create($pathToImage)
	->modify(['w'=> 50, 'filt'=>'greyscale'])
	->save($pathToWhereToSaveTheManipulatedImage);
```

Support us
----------

[](#support-us)

Learn how to create a package like this one, by watching our premium video course:

[![Laravel Package training](https://camo.githubusercontent.com/4c7f3720a29525e627f6004ee367e55def510e45d18e6bc974725812fa5cf257/68747470733a2f2f7370617469652e62652f6769746875622f7061636b6167652d747261696e696e672e6a7067)](https://laravelpackage.training)

We 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).

We 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).

Installation
------------

[](#installation)

You can install the package through Composer.

```
composer require spatie/laravel-glide
```

In 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:

```
'providers' => [
    ...
    Spatie\Glide\GlideServiceProvider::class,
    ...
];

...

'aliases' => [
	...
    'GlideImage' => Spatie\Glide\GlideImageFacade::class,
    ...
]
```

You can publish the config file of the package using artisan.

```
php artisan vendor:publish --provider="Spatie\Glide\GlideServiceProvider"
```

The config file looks like this:

```
