2017 © Pedro Peláez
 

library 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

image

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

  • Saturday, May 7, 2016
  • by mrofi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 48 Forks
  • 0 Open issues
  • 23 Versions
  • 0 % Grown

The README.md

Easily convert images with Glide

Latest Version Build status SensioLabsInsight Quality Score 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);

Spatie is a webdesign agency in Antwerp, Belgium. You'll find an overview of all our open source projects on our website., (*4)

Installation

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

composer require spatie/laravel-glide

You must install this service provider., (*6)


// config/app.php 'providers' => [ ... Spatie\Glide\GlideServiceProvider::class, ... ];

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


// config/app.php 'aliases' => [ ... 'GlideImage' => Spatie\Glide\GlideImageFacade::class, ... ]

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

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

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


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

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., (*11)

Testing

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

composer test

Previous versions

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

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

Credits

About Spatie

Spatie is a webdesign agency in Antwerp, Belgium. You'll find an overview of all our open source projects on our website., (*15)

License

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

The Versions

07/05 2016

dev-master

9999999-dev https://github.com/spatie/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

  Sources   Download

MIT

The Requires

 

The Development Requires

05/05 2016
29/12 2015
18/12 2015

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

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