summaryrefslogtreecommitdiff
path: root/vendor/league/glide/docs/0.3/api/effects.md
blob: 415ce5fc3f559403428f987a7558180c2f90566f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
layout: default
title: Effects
---

# Effects

## Blur `blur`

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

~~~ html
<img src="kayaks.jpg?w=500&blur=5>
~~~

[![© Photo Joel Reynolds](https://glide.herokuapp.com/0.3/kayaks.jpg?w=500&blur=5)](https://glide.herokuapp.com/0.3/kayaks.jpg?w=500&blur=5)

<p class="message-notice">Performance intensive on larger amounts of blur with GD driver. Use with care.</p>

## Pixelate `pixel`

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

~~~ html
<img src="kayaks.jpg?w=500&pixel=5>
~~~

[![© Photo Joel Reynolds](https://glide.herokuapp.com/0.3/kayaks.jpg?w=500&pixel=5)](https://glide.herokuapp.com/0.3/kayaks.jpg?w=500&pixel=5)

## Filter `filt`

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

~~~ html
<img src="kayaks.jpg?w=500&filt=sepia>
~~~

[![© Photo Joel Reynolds](https://glide.herokuapp.com/0.3/kayaks.jpg?w=500&filt=sepia)](https://glide.herokuapp.com/0.3/kayaks.jpg?w=500&filt=sepia)