summaryrefslogtreecommitdiff
path: root/vendor/league/glide/docs/0.3/api/output.md
blob: 4bd2dff59de4b9b371c92f6bbbdcd8296116b1cc (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
---
layout: default
title: Output
---

# Output

## Quality `q`

Defines the quality of the image. Use values between `0` and `100`. Defaults to `90`. Only relevant if the format is set to `jpg`.

~~~ html
<img src="kayaks.jpg?w=500&q=25>
~~~

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


## Format `fm`

Encodes the image to a specific format. Accepts `jpg`, `png` or `gif`. Defaults to `jpg`.

~~~ html
<img src="kayaks.jpg?w=500&fm=gif>
~~~

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