PHPackages                             scratcher28/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. scratcher28/laravel-glide

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

scratcher28/laravel-glide
=========================

Easily convert images with Glide (mod)

3.5.5(3y ago)1190MITPHPPHP ^7.0|^8.0

Since Jan 19Pushed 3y agoCompare

[ Source](https://github.com/scratcher28/laravel-glide)[ Packagist](https://packagist.org/packages/scratcher28/laravel-glide)[ Docs](https://github.com/scratcher28/laravel-glide)[ RSS](/packages/scratcher28-laravel-glide/feed)WikiDiscussions master Synced today

READMEChangelog (9)Dependencies (2)Versions (45)Used By (0)

Easily convert images with Glide (mod)
======================================

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

[![Latest Version](https://camo.githubusercontent.com/172b30fe185eb535fb0228ac58ce21eb264442029aff276e82a6ca67b8ffcd97/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7370617469652f6c61726176656c2d676c6964652e7376673f7374796c653d666c61742d737175617265)](https://github.com/spatie/laravel-glide/releases)[![Build status](https://camo.githubusercontent.com/efac3d5119ac0c20295dcc9ae610d904d7acc4b4ab4c5c35495f49cf8cbe8671/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7370617469652f6c61726176656c2d676c6964652e737667)](https://travis-ci.org/spatie/laravel-glide)[![Quality Score](https://camo.githubusercontent.com/5fb146d32ce63f0198ae2d5dab83b868671739f3823c1c979938079a7df19983/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7370617469652f6c61726176656c2d676c6964652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/spatie/laravel-glide)[![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);
```

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:

```
