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

ActiveLibrary

mrofi/laravel-glide
===================

Easily convert images with Glide (refork from spatie/laravel-glide) But this repo dedicated for php 5.x :). Dont forget to use dev-master

3.0.1(10y ago)031MITPHPPHP ^7.0

Since Jan 19Pushed 10y ago1 watchersCompare

[ Source](https://github.com/mrofi/laravel-glide)[ Packagist](https://packagist.org/packages/mrofi/laravel-glide)[ Docs](https://github.com/spatie/laravel-glide)[ RSS](/packages/mrofi-laravel-glide/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (23)Used By (0)

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)[![Build status](https://camo.githubusercontent.com/efac3d5119ac0c20295dcc9ae610d904d7acc4b4ab4c5c35495f49cf8cbe8671/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7370617469652f6c61726176656c2d676c6964652e737667)](https://travis-ci.org/spatie/laravel-glide)[![SensioLabsInsight](https://camo.githubusercontent.com/217adb546878ba21a7be0a4f82ff83467b37c83fcc049bf6ab8944064912d8d6/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f61643034323263612d653331662d343461332d623031612d6565356563373537623138642f6d696e692e706e67)](https://insight.sensiolabs.com/projects/ad0422ca-e31f-44a3-b01a-ee5ec757b18d)[![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);
```

Spatie is a webdesign agency in Antwerp, Belgium. You'll find an overview of all our open source projects [on our website](https://spatie.be/opensource).

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

[](#installation)

You can install the package through Composer.

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

You must install this service provider.

```
// config/app.php

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

This package also comes with a facade, which provides an easy way to generate images.

```
// config/app.php

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

```
