2017 © Pedro Peláez
 

library laravel-glide

Easily convert images with Glide

image

spatie/laravel-glide

Easily convert images with Glide

  • Thursday, February 8, 2018
  • by Spatie
  • Repository
  • 13 Watchers
  • 265 Stars
  • 293,206 Installations
  • PHP
  • 9 Dependents
  • 0 Suggesters
  • 48 Forks
  • 0 Open issues
  • 31 Versions
  • 5 % Grown

The README.md

Easily convert images with Glide

Latest Version run-tests Software License Total Downloads, (*1)

This package provides an easy to use class to manipulate images. Under the hood it leverages Glide to perform the manipulations., (*2)

Here's an example of how the package can be used:, (*3)

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

Support us

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

Laravel Package training, (*5)

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products., (*6)

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. We publish all received postcards on our virtual postcard wall., (*7)

Installation

You can install the package through Composer., (*8)

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:, (*9)

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

...

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

You can publish the config file of the package using artisan., (*10)

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

The config file looks like this:, (*11)


<?php return [ /* * The driver that will be used to create images. Can be set to gd or imagick. */ 'driver' => 'gd', ];

Usage

Here's a quick example that shows how an image can be modified:, (*12)

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

Take a look at Glide's image API to see which parameters you can pass to the modify-method., (*13)

Testing

You can run the tests with:, (*14)

composer test

Changelog

Please see CHANGELOG for more information what has changed recently., (*15)

Previous versions

Previous versions of this package had PHP 5.4 support and the ability to generate images on the fly from an url., (*16)

The previous versions are unsupported, but they should still work in your older projects., (*17)

Security

If you've found a bug regarding security please mail security@spatie.be instead of using the issue tracker., (*18)

Credits

License

The MIT License (MIT). Please see LICENSE for more information., (*19)

The Versions

20/07 2016

v2.x-dev

2.9999999.9999999.9999999-dev https://github.com/spatie/laravel-glide

A Glide Service Provider for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

20/07 2016
13/05 2016
13/05 2016
11/05 2016
05/05 2016
05/05 2016
29/12 2015
18/12 2015
30/11 2015
30/07 2015
13/07 2015

dev-laravel-4

dev-laravel-4 https://github.com/spatie/laravel-glide

A Glide Service Provider for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

13/07 2015
15/06 2015
01/06 2015
22/04 2015

2.2.2

2.2.2.0

A Glide Service Provider for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

17/04 2015

2.2.1

2.2.1.0

A Glide Service Provider for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

11/04 2015

2.2.0

2.2.0.0

A Glide Service Provider for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

23/03 2015

2.1.0

2.1.0.0

A Glide Service Provider for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

16/03 2015

2.0.2

2.0.2.0

A Glide Service Provider for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

10/03 2015

2.0.1

2.0.1.0

A Glide Service Provider for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

12/02 2015

2.0.0

2.0.0.0

A Glide Service Provider for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

11/02 2015

1.0.0

1.0.0.0

A Glide Service Provider for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

29/01 2015

0.3.0

0.3.0.0

A Glide Service Provider for Laravel

  Sources   Download

MIT

The Requires

 

23/01 2015

0.2

0.2.0.0

A Glide Service Provider for Laravel

  Sources   Download

MIT

The Requires

 

20/01 2015

0.1

0.1.0.0

A Glide Service Provider for Laravel

  Sources   Download

MIT

The Requires