Fork me on GitHub
The League of Extraordinary Packages

Our Packages:

Presented by The League of Extraordinary Packages

Getting Started

Configuration

Image API

Image driver

By default Glide uses the GD library. However you can also use Glide with ImageMagick if the Imagick PHP extension is installed or libvips.

<?php

$server = \League\Glide\ServerFactory::create([

    // Use GD (default)
    'driver' => 'gd',

    // Use ImageMagick
    'driver' => 'imagick',

    // Use libvips. Requires installing the `intervention/image-driver-vips` composer package.
    'driver' => \Intervention\Image\Drivers\Vips\Driver::class,
]);

Driver options

The driver option also accepts an array, letting you pass additional options through to Intervention Image’s ImageManager, such as stripping EXIF metadata from output images.

<?php

$server = \League\Glide\ServerFactory::create([
    'driver' => [
        'driver' => 'imagick',
        'strip' => true,
    ],
]);

See the Intervention Image driver configuration docs for the full list of available options.