Files
imgproxy/docs/presets.md
DarthSim 25712e5d71 Docs
2018-10-04 19:16:51 +06:00

24 lines
884 B
Markdown

# Presets
Preset is named set of processing options. Presets can be used in [advanced URL format](../docs/generating_the_url_advanced.md#preset) to get shorter and more readable URLs.
### Presets definition
Preset definition looks like this:
```
%preset_name=%processing_options
```
Processing options should be defined the same way as you define them in the [advanced URL format](../docs/generating_the_url_advanced.md#preset). For example, preset named `awesome` that sets the resizing type to `fill` and resulting format to `jpg` will look like this:
```
awesome=resizing_type:fill/format:jpg
```
Read how to specify your presets to imgproxy in [Configuration](../docs/configuration.md) guide.
### Default preset
Preset named `default` will be applied to each image. This is useful when you want your default processing options to be different from imgproxy default ones.