Effects

See original Glide PHP effects docs here

All descriptions are directly quoted from the above docs.


Table of contents

  1. Blur
  2. Pixelate
  3. Filter
    1. Filter Constants

Blur

Adds a blur effect to the image. Use values between 0 and 100.

glide_url('/path/to/your_amazing_image.jpeg')->blur(5)->url()

Pixelate

Applies a pixelation effect to the image. Use values between 0 and 1000.

glide_url('/path/to/your_amazing_image.jpeg')->pixel(5)->url()
//OR
glide_url('/path/to/your_amazing_image.jpeg')->pixelate(5)->url()

Filter

Applies a filter effect to the image. Accepts greyscale or sepia.

glide_url('/path/to/your_amazing_image.jpeg')->filt('greyscale')->url()
//OR
glide_url('/path/to/your_amazing_image.jpeg')->filter('greyscale')->url()

//With Constants
glide_url('/path/to/your_amazing_image.jpeg')->filt(Filter::GREYSCALE)->url()
//OR
glide_url('/path/to/your_amazing_image.jpeg')->filter(Filter::GREYSCALE)->url()

Filter Constants

namespace AmpedWeb\GlideUrl\Interfaces\Filter;

Filter::GREYSCALE // same as "greyscale"
Filter::SEPIA // same as "sepia"