# Presets

An imgproxy preset is a named set of processing or info options. Presets can be used in [processing URLs](./processing.mdx) or [info URLs](./getting_info.mdx) via the [preset](./processing.mdx#preset) option to make them shorter and more human-readable.

## Presets definition

A preset definition looks like this:

```imgproxy_presets
%preset_name=%options
```

Options should be defined in the same way they are defined in [processing URLs](./processing.mdx#processing-options) and [info URLs](./getting_info.mdx#processing-options). For example, here's a preset named `awesome` that sets the resizing type to `fill` and the resulting format to `jpg`:

```imgproxy_presets
awesome=resizing_type:fill/format:jpg
```

Read how to specify your presets with imgproxy in the [Configuration options](../configuration/options.mdx#presets) guide.

## Default preset

A preset named `default` will be applied to each image. This is useful when you want your default processing options to be different from the default imgproxy options.

## Only presets

Setting `IMGPROXY_ONLY_PRESETS` to `true` switches imgproxy into presets-only mode. In this mode, imgproxy accepts a presets list as processing options just like you'd specify them for the `preset` option:

```imgproxy_url_only_presets
http://imgproxy.example.com/unsafe/thumbnail:blurry:watermarked/plain/http://example.com/images/curiosity.jpg@png
```

You can enable or disable the presets-only mode for the [info](./getting_info.mdx) endpoint using the `IMGPROXY_INFO_ONLY_PRESETS` config. If `IMGPROXY_INFO_ONLY_PRESETS` is not set, the info endpoint respects the `IMGPROXY_ONLY_PRESETS` value.

---

## Navigation

- [Getting started](/latest/getting_started)
- [imgproxy Pro](https://imgproxy.net#pro)
- [Installation](/latest/installation)
- [Configuration](/latest/category/configuration)
  - [Configuration options](/latest/configuration/options)
  - [Loading environment variables](/latest/configuration/loading_environment_variables)
- [Usage](/latest/category/usage)
  - [Processing an image](/latest/usage/processing)
  - [Getting an image info](/latest/usage/getting_info)
  - [Signing a URL](/latest/usage/signing_url)
  - [Encrypting a source URL](/latest/usage/encrypting_source_url)
  - [Presets](/latest/usage/presets)
- [Features](/latest/category/features)
  - [Watermark](/latest/features/watermark)
  - [Object detection](/latest/features/object_detection)
  - [Classification](/latest/features/classification)
  - [Autoquality](/latest/features/autoquality)
  - [Best format](/latest/features/best_format)
  - [Chained pipelines](/latest/features/chained_pipelines)
- [Image sources](/latest/category/image-sources)
  - [Serving local files](/latest/image_sources/local_files)
  - [Serving files from Amazon S3](/latest/image_sources/amazon_s3)
  - [Serving files from Google Cloud Storage](/latest/image_sources/google_cloud_storage)
  - [Serving files from Azure Blob Storage](/latest/image_sources/azure_blob_storage)
  - [Serving files from OpenStack Object Storage ("Swift")](/latest/image_sources/openstack_swift)
- [Cache](/latest/category/cache)
  - [External cache](/latest/cache/external)
  - [Internal cache](/latest/cache/internal)
    - [Internal cache: Local filesystem](/latest/cache/internal/local_filesystem)
    - [Internal cache: Amazon S3](/latest/cache/internal/amazon_s3)
    - [Internal cache: Google Cloud Storage](/latest/cache/internal/google_cloud_storage)
    - [Internal cache: Azure Blob Storage](/latest/cache/internal/azure_blob_storage)
    - [Internal cache: OpenStack Object Storage ("Swift")](/latest/cache/internal/openstack_swift)
- [Monitoring](/latest/category/monitoring)
  - [New Relic](/latest/monitoring/new_relic)
  - [Prometheus](/latest/monitoring/prometheus)
  - [Datadog](/latest/monitoring/datadog)
  - [OpenTelemetry](/latest/monitoring/open_telemetry)
  - [Amazon CloudWatch](/latest/monitoring/cloud_watch)
- [Image formats support](/latest/image_formats_support)
- [About the processing pipeline](/latest/about_processing_pipeline)
- [Health check](/latest/healthcheck)
- [Memory usage tweaks](/latest/memory_usage_tweaks)

## Other versions

- [4.0.x (current)](/usage/presets)
- [3.31.x](/3.31.x/usage/presets)
- [3.30.x](/3.30.x/usage/presets)
- [3.29.x](/3.29.x/usage/presets)
- [3.28.x](/3.28.x/usage/presets)
- [3.27.x](/3.27.x/usage/presets)
- [3.26.x](/3.26.x/usage/presets)
- [3.25.x](/3.25.x/usage/presets)
- [3.24.x](/3.24.x/usage/presets)
- [3.23.x](/3.23.x/usage/presets)
- [3.22.x](/3.22.x/usage/presets)
- [3.21.x](/3.21.x/usage/presets)
- [3.20.x](/3.20.x/usage/presets)
- [3.19.x](/3.19.x/usage/presets)
