Configuration options
imgproxy is Twelve-Factor-App-ready and can be configured using ENV
variables.
URL signature
imgproxy allows URLs to be signed with a key and a salt. This feature is disabled by default, but is highly recommended to be enabled in production. To enable URL signature checking, define the key/salt pair:
IMGPROXY_KEY
: hex-encoded keyIMGPROXY_SALT
: hex-encoded saltIMGPROXY_SIGNATURE_SIZE
: number of bytes to use for signature before encoding to Base64. Default: 32
You can specify multiple key/salt pairs by dividing the keys and salts with a comma (,
). imgproxy will check URL signatures with each pair. This is useful when you need to change key/salt pairs in your application while incurring zero downtime.
You can also specify file paths using the command line by referencing a separate file containing hex-coded keys and salts line by line:
imgproxy -keypath /path/to/file/with/key -saltpath /path/to/file/with/salt
If you need a random key/salt pair really fast, as an example, you can quickly generate one using the following snippet:
echo $(xxd -g 2 -l 64 -p /dev/random | tr -d '\n')
Server
IMGPROXY_BIND
: the address and port or Unix socket to listen to. Default::8080
IMGPROXY_NETWORK
: the network to use. Known networks aretcp
,tcp4
,tcp6
,unix
, andunixpacket
. Default:tcp
IMGPROXY_READ_TIMEOUT
: the maximum duration (in seconds) for reading the entire image request, including the body. Default:10
IMGPROXY_WRITE_TIMEOUT
: the maximum duration (in seconds) for writing the response. Default:10
IMGPROXY_KEEP_ALIVE_TIMEOUT
: the maximum duration (in seconds) to wait for the next request before closing the connection. When set to0
, keep-alive is disabled. Default:10
IMGPROXY_CLIENT_KEEP_ALIVE_TIMEOUT
: the maximum duration (in seconds) to wait for the next request before closing the HTTP client connection. The HTTP client is used to download source images. When set to0
, keep-alive is disabled. Default:90
IMGPROXY_DOWNLOAD_TIMEOUT
: the maximum duration (in seconds) for downloading the source image. Default:5
IMGPROXY_WORKERS
: (alias:IMGPROXY_CONCURRENCY
) the maximum number of images an imgproxy instance can process simultaneously without creating a queue. Default: the number of CPU cores multiplied by twoIMGPROXY_REQUESTS_QUEUE_SIZE
: the maximum number of image requests that can be put in the queue. Requests that exceed this limit are rejected with429
HTTP status. When set to0
, the requests queue is unlimited. Default:0
IMGPROXY_MAX_CLIENTS
: the maximum number of simultaneous active connections. When set to0
, connection limit is disabled. Default:2048
IMGPROXY_TTL
: a duration (in seconds) sent via theExpires
andCache-Control: max-age
HTTP headers. Default:31536000
(1 year)IMGPROXY_CACHE_CONTROL_PASSTHROUGH
: whentrue
and the source image response contains theExpires
orCache-Control
headers, reuse those headers. Default: falseIMGPROXY_SET_CANONICAL_HEADER
: whentrue
and the source image has anhttp
orhttps
scheme, set arel="canonical"
HTTP header to the value of the source image URL. More details here. Default:false
IMGPROXY_SO_REUSEPORT
: whentrue
, enablesSO_REUSEPORT
socket option (currently only available on Linux and macOS);IMGPROXY_PATH_PREFIX
: the URL path prefix. Example: when set to/abc/def
, the imgproxy URL will be/abc/def/%signature/%processing_options/%source_url
. Default: blankIMGPROXY_USER_AGENT
: the User-Agent header that will be sent with the source image request. Default:imgproxy/%current_version
IMGPROXY_USE_ETAG
: when set totrue
, enables using the ETag HTTP header for HTTP cache control. Default:false
IMGPROXY_ETAG_BUSTER
: change this to change ETags for all the images. Default: blankIMGPROXY_USE_LAST_MODIFIED
: when set totrue
, enables using the Last-Modified HTTP header for HTTP cache control. Default:false
IMGPROXY_CUSTOM_REQUEST_HEADERS
: pro list of custom headers that imgproxy will send while requesting the source image, divided by\;
(can be redefined byIMGPROXY_CUSTOM_HEADERS_SEPARATOR
). Example:X-MyHeader1=Lorem\;X-MyHeader2=Ipsum
IMGPROXY_CUSTOM_RESPONSE_HEADERS
: pro a list of custom response headers, separated by\;
(can be redefined byIMGPROXY_CUSTOM_HEADERS_SEPARATOR
). Example:X-MyHeader1=Lorem\;X-MyHeader2=Ipsum
IMGPROXY_CUSTOM_HEADERS_SEPARATOR
: pro a string that will be used as a custom header separator. Default:\;
IMGPROXY_REQUEST_HEADERS_PASSTHROUGH
: pro a list of names of incoming request headers that should be passed through to the source image request.IMGPROXY_RESPONSE_HEADERS_PASSTHROUGH
: pro a list of names of source image response headers that should be passed through to the imgproxy response.IMGPROXY_ENABLE_DEBUG_HEADERS
: when set totrue
, imgproxy will add debug headers to the response. Default:false
. The following headers will be added:X-Origin-Content-Length
: the size of the source imageX-Origin-Width
: the width of the source imageX-Origin-Height
: the height of the source imageX-Result-Width
: the width of the resultant imageX-Result-Height
: the height of the resultant image
IMGPROXY_SERVER_NAME
: pro theServer
header value. Default:imgproxy
Security
imgproxy protects you from so-called image bombs. Here's how you can specify the maximum image resolution which you consider reasonable:
-
IMGPROXY_MAX_SRC_RESOLUTION
: the maximum resolution of the source image, in megapixels. Images with larger actual size will be rejected. Default:16.8
warningWhen the source image is animated, imgproxy summarizes all its frames' resolutions while checking the source image resolution unless
IMGPROXY_MAX_ANIMATION_FRAME_RESOLUTION
is greater than zero. -
IMGPROXY_MAX_SRC_FILE_SIZE
: the maximum size of the source image, in bytes. Images with larger file size will be rejected. When set to0
, file size check is disabled. Default:0
imgproxy can process animated images (GIF, WebP), but since this operation is pretty memory heavy, only one frame is processed by default. You can increase the maximum animation frames that can be processed number of with the following variable:
IMGPROXY_MAX_ANIMATION_FRAMES
: the maximum number of animated image frames that may be processed. Default:1
IMGPROXY_MAX_ANIMATION_FRAME_RESOLUTION
: the maximum resolution of the animated source image frame, in megapixels. Images with larger actual frame size will be rejected. When set to0
, imgproxy will test the whole animated image resolution againstIMGPROXY_MAX_SRC_RESOLUTION
summarising all the frames' resolutions. Default:0
To check if the source image is SVG, imgproxy reads some amount of bytes; by default it reads a maximum of 32KB. However, you can change this value using the following variable:
IMGPROXY_MAX_SVG_CHECK_BYTES
: the maximum number of bytes imgproxy will read to recognize SVG files. If imgproxy is unable to recognize your SVG, try increasing this number. Default:32768
(32KB)
Requests to some image sources may go through too many redirects or enter an infinite loop. You can limit the number of allowed redirects:
IMGPROXY_MAX_REDIRECTS
: the max number of redirects imgproxy can follow while requesting the source image. When set to0
, no redirects are allowed. Default:10
You can also specify a secret key to enable authorization with the HTTP Authorization
header for use in production environments:
IMGPROXY_SECRET
: the authorization token. If specified, the HTTP request should contain theAuthorization: Bearer %secret%
header.
If you don't want to reveal your source URLs, you can encrypt them with the AES-CBC algorithm:
-
IMGPROXY_SOURCE_URL_ENCRYPTION_KEY
: hex-encoded key used for source URL encryption. Default: blanktipRead more about source URL encryption in the encrypting the source URL guide.
imgproxy does not send CORS headers by default. CORS will need to be allowed by using the following variable:
IMGPROXY_ALLOW_ORIGIN
: when specified, enables CORS headers with the provided origin. CORS headers are disabled by default.
You can limit allowed source URLs with the following variable:
-
IMGPROXY_ALLOWED_SOURCES
: a whitelist of source image URL prefixes divided by comma. Wildcards can be included with*
to match all characters except/
. When blank, imgproxy allows all source image URLs. Example:s3://,https://*.example.com/,local://
. Default: blankwarningBe careful when using this config to limit source URL hosts, and always add a trailing slash after the host.
Bad:
http://example.com
Good:
http://example.com/
If the trailing slash is absent,
http://example.com@baddomain.com
would be a permissable URL, however, the request would be made tobaddomain.com
. -
IMGPROXY_ALLOW_LOOPBACK_SOURCE_ADDRESSES
: whentrue
, allows connecting to loopback IP addresses (127.0.0.1
-127.255.255.255
and IPv6 analogues) when requesting source images. Default:false
-
IMGPROXY_ALLOW_LINK_LOCAL_SOURCE_ADDRESSES
: whentrue
, allows connecting to link-local multicast and unicast IP addresses (224.0.0.1
-224.0.0.255
,169.254.0.1
-169.254.255.255
, and IPv6 analogues) when requesting source images. Default:false
-
IMGPROXY_ALLOW_PRIVATE_SOURCE_ADDRESSES
: whentrue
, allows connecting to private IP addresses (10.0.0.0 - 10.255.255.255
,172.16.0.0 - 172.31.255.255
,192.168.0.0 - 192.168.255.255
, and IPv6 analogues) when requesting source images. Default:true
-
IMGPROXY_SANITIZE_SVG
: whentrue
, imgproxy will remove scripts from SVG images to prevent XSS attacks. Defaut:true
When using imgproxy in a development environment, it can be useful to ignore SSL verification:
IMGPROXY_IGNORE_SSL_VERIFICATION
: whentrue
, disables SSL verification, so imgproxy can be used in a development environment with self-signed SSL certificates.
Also you may want imgproxy to respond with the same error message that it writes to the log:
-
IMGPROXY_DEVELOPMENT_ERRORS_MODE
: whentrue
, imgproxy will respond with detailed error messages. Not recommended for production because some errors may contain stack traces. -
IMGPROXY_ALLOW_SECURITY_OPTIONS
: whentrue
, allows usage of security-related processing options such asmax_src_resolution
,max_src_file_size
,max_animation_frames
, andmax_animation_frame_resolution
. Default:false
.warningIMGPROXY_ALLOW_SECURITY_OPTIONS
allows bypassing your security restrictions. Don't set it totrue
unless you are completely sure that an attacker can't change your imgproxy URLs.
Cookies
imgproxy can pass cookies in image requests. This can be activated with IMGPROXY_COOKIE_PASSTHROUGH
. Unfortunately the Cookie
header doesn't contain information about which URLs these cookies are applicable to, so imgproxy can only assume (or must be told).
When cookie forwarding is activated, by default, imgproxy assumes the scope of the cookies to be all URLs with the same hostname/port and request scheme as given by the headers X-Forwarded-Host
, X-Forwarded-Port
, X-Forwarded-Scheme
or Host
. To change that use IMGPROXY_COOKIE_BASE_URL
.
-
IMGPROXY_COOKIE_PASSTHROUGH
: whentrue
, incoming cookies will be passed through the image request if they are applicable for the image URL. Default:false
-
IMGPROXY_COOKIE_BASE_URL
: when set, assume that cookies have the scope of this URL for an incoming request (instead of using request headers). If the cookies are applicable to the image URL too, they will be passed along in the image request.
Compression
IMGPROXY_QUALITY
: the default quality of the resultant image, percentage. Default:80
IMGPROXY_FORMAT_QUALITY
: default quality of the resulting image per format, separated by commas. Example:jpeg=70,avif=40,webp=60
. When a value for the resulting format is not set, theIMGPROXY_QUALITY
value is used. Default:avif=65
Advanced JPEG compression
IMGPROXY_JPEG_PROGRESSIVE
: whentrue
, enables progressive JPEG compression. Default:false
IMGPROXY_JPEG_NO_SUBSAMPLE
: pro whentrue
, chrominance subsampling is disabled. This will improve quality at the cost of larger file size. Default:false
IMGPROXY_JPEG_TRELLIS_QUANT
: pro whentrue
, enables trellis quantisation for each 8x8 block. Reduces file size but increases compression time. Default:false
IMGPROXY_JPEG_OVERSHOOT_DERINGING
: pro whentrue
, enables overshooting of samples with extreme values. Overshooting may reduce ringing artifacts from compression, in particular in areas where black text appears on a white background. Default:false
IMGPROXY_JPEG_OPTIMIZE_SCANS
: pro whentrue
, splits the spectrum of DCT coefficients into separate scans. Reduces file size but increases compression time. RequiresIMGPROXY_JPEG_PROGRESSIVE
to be true. Default:false
IMGPROXY_JPEG_QUANT_TABLE
: pro quantization table to use. Supported values are:0
: Table from JPEG Annex K (default)1
: Flat table2
: Table tuned for MSSIM on Kodak image set3
: Table from ImageMagick by N. Robidoux4
: Table tuned for PSNR-HVS-M on Kodak image set5
: Table from Relevance of Human Vision to JPEG-DCT Compression (1992)6
: Table from DCTune Perceptual Optimization of Compressed Dental X-Rays (1997)7
: Table from A Visual Detection Model for DCT Coefficient Quantization (1993)8
: Table from An Improved Detection Model for DCT Coefficient Quantization (1993)
Advanced PNG compression
IMGPROXY_PNG_INTERLACED
: whentrue
, enables interlaced PNG compression. Default:false
IMGPROXY_PNG_QUANTIZE
: whentrue
, enables PNG quantization. libvips should be built with Quantizr or libimagequant support. Default:false
IMGPROXY_PNG_QUANTIZATION_COLORS
: maximum number of quantization palette entries. Should be between 2 and 256. Default: 256
Advanced WebP compression
IMGPROXY_WEBP_COMPRESSION
: pro the compression method to use. Supported values arelossy
,near_lossless
, andlossless
. Default:lossy
Advanced AVIF compression
IMGPROXY_AVIF_SPEED
: controls the CPU effort spent improving compression. The lowest speed is at 0 and the fastest is at 9. Default:9
Autoquality
imgproxy can calculate the quality of the resulting image based on selected metric. Read more in the Autoquality guide.
Autoquality requires the image to be saved several times. Use it only when you prefer the resulting size and quality over the speed.
IMGPROXY_AUTOQUALITY_METHOD
: pro the method of quality calculation. Default:none
IMGPROXY_AUTOQUALITY_TARGET
: pro desired value of the autoquality method metric. Default: 0.02IMGPROXY_AUTOQUALITY_MIN
: pro minimal quality imgproxy can use. Default: 70IMGPROXY_AUTOQUALITY_FORMAT_MIN
: pro the minimal quality imgproxy can use per format, comma divided. Example:jpeg=70,avif=40,webp=60
. When value for the resulting format is not set,IMGPROXY_AUTOQUALITY_MIN
value is used. Default:avif=40
IMGPROXY_AUTOQUALITY_MAX
: pro the maximum quality imgproxy can use. Default: 80IMGPROXY_AUTOQUALITY_FORMAT_MAX
: pro the maximum quality imgproxy can use per format, comma divided. Example:jpeg=70,avif=40,webp=60
. When a value for the resulting format is not set, theIMGPROXY_AUTOQUALITY_MAX
value is used. Default:avif=50
IMGPROXY_AUTOQUALITY_ALLOWED_ERROR
: pro the allowedIMGPROXY_AUTOQUALITY_TARGET
error. Applicable only todssim
andml
methods. Default: 0.001IMGPROXY_AUTOQUALITY_MAX_RESOLUTION
: pro when this value is greater then zero and the resultant resolution exceeds the value, autoquality won't be used. Default: 0IMGPROXY_AUTOQUALITY_JPEG_NET
: pro the path to the neural network for JPEG.IMGPROXY_AUTOQUALITY_WEBP_NET
: pro the path to the neural network for WebP.IMGPROXY_AUTOQUALITY_AVIF_NET
: pro the path to the neural network for AVIF.
AVIF/WebP support detection
imgproxy can use the Accept
HTTP header to detect if the browser supports AVIF or WebP and use it as the default format. This feature is disabled by default and can be enabled by the following options:
IMGPROXY_ENABLE_WEBP_DETECTION
: enables WebP support detection. When the file extension is omitted in the imgproxy URL and browser supports WebP, imgproxy will use it as the resulting format.IMGPROXY_ENFORCE_WEBP
: enables WebP support detection and enforces WebP usage. If the browser supports WebP, it will be used as resulting format even if another extension is specified in the imgproxy URL.IMGPROXY_ENABLE_AVIF_DETECTION
: enables AVIF support detection. When the file extension is omitted in the imgproxy URL and browser supports AVIF, imgproxy will use it as the resulting format.IMGPROXY_ENFORCE_AVIF
: enables AVIF support detection and enforces AVIF usage. If the browser supports AVIF, it will be used as resulting format even if another extension is specified in the imgproxy URL.
imgproxy prefers AVIF over WebP. This means that if both AVIF and WebP detection/enforcement are enabled and the browser supports both of them, AVIF will be used.
If both the source and the requested image formats support animation and AVIF detection/enforcement is enabled, AVIF won't be used as AVIF sequence is not supported yet.
When AVIF/WebP support detection is enabled, please take care to configure your CDN or caching proxy to take the Accept
HTTP header into account while caching.
Headers cannot be signed. This means that an attacker can bypass your CDN cache by changing the Accept
HTTP headers. Keep this in mind when configuring your production caching setup.
Preferred formats
When the resulting image format is not explicitly specified in the imgproxy URL via the extension or the format
processing option, imgproxy will choose one of the preferred formats:
imgproxy is guided by the following rules when choosing the resulting format:
- If the preferred formats list contains the source image format, it will be used
- If the resulting image is animated, the resulting image format should support animations
- If the resulting image contains transparency, the resulting image format should support transparency
- imgproxy chooses the first preferred format that meets those requirements
- If none of the preferred formats meet the requirements, the first preferred format is used
When AVIF/WebP support detection is enabled and the browser supports AVIF/WebP, it may be used as the resultant format even if the preferred formats list doesn't contain it.
Skip processing
You can configure imgproxy to skip processing of some formats:
Processing can only be skipped when the requested format is the same as the source format.
Video thumbnail processing can't be skipped.
Best format
You can use the best
value for the format option or the extension to make imgproxy pick the best format for the resultant image.
IMGPROXY_BEST_FORMAT_COMPLEXITY_THRESHOLD
: pro the image complexity threshold. imgproxy will use a lossless or near-lossless encoding for images with low complexity. Default:5.5
IMGPROXY_BEST_FORMAT_MAX_RESOLUTION
: pro when greater than0
and the image's resolution (in megapixels) is larger than the provided value, imgproxy won't try all the applicable formats and will just pick one that seems the best for the imageIMGPROXY_BEST_FORMAT_BY_DEFAULT
: pro whentrue
and the resulting image format is not specified explicitly, imgproxy will use thebest
format instead of the source image formatIMGPROXY_BEST_FORMAT_ALLOW_SKIPS
: pro whentrue
and thebest
format is used, imgproxy will skip processing of SVG and formats listed to skip processing
Check out the Best format guide to learn more.
Client Hints support
imgproxy can use the Width
and DPR
HTTP headers to determine default width and DPR options using Client Hints. This feature is disabled by default and can be enabled by the following option:
IMGPROXY_ENABLE_CLIENT_HINTS
: enables Client Hints support to determine default width and DPR options. Read more details here about Client Hints.
Headers cannot be signed. This means that an attacker can bypass your CDN cache by changing the Width
or DPR
HTTP headers. Keep this in mind when configuring your production caching setup.
Video thumbnails
imgproxy Pro can extract specific video frames to create thumbnails. This feature is disabled by default, but can be enabled with IMGPROXY_ENABLE_VIDEO_THUMBNAILS
.
IMGPROXY_ENABLE_VIDEO_THUMBNAILS
: pro whentrue
, enables video thumbnail generation. Default:false
IMGPROXY_VIDEO_THUMBNAIL_SECOND
: pro the timestamp of the frame (in seconds) that will be used for a thumbnail. Default:1
IMGPROXY_VIDEO_THUMBNAIL_PROBE_SIZE
: pro the maximum amount of bytes used to determine the format. Lower values can decrease memory usage but can produce inaccurate data, or even lead to errors. Default: 5000000IMGPROXY_VIDEO_THUMBNAIL_MAX_ANALYZE_DURATION
: pro the maximum number of milliseconds used to get the stream info. Lower values can decrease memory usage but can produce inaccurate data, or even lead to errors. When set to0
, the heuristic is used. Default:0
Though using IMGPROXY_VIDEO_THUMBNAIL_PROBE_SIZE
and IMGPROXY_VIDEO_THUMBNAIL_MAX_ANALYZE_DURATION
can lower the memory footprint of video thumbnail generation, they should be used in production only when you know what you're doing.
Watermark
IMGPROXY_WATERMARK_DATA
: Base64-encoded image data. You can easily calculate it withbase64 tmp/watermark.png | tr -d '\n'
.IMGPROXY_WATERMARK_PATH
: the path to the locally stored imageIMGPROXY_WATERMARK_URL
: the watermark image URLIMGPROXY_WATERMARK_OPACITY
: the watermark's base opacityIMGPROXY_WATERMARKS_CACHE_SIZE
: pro custom watermarks cache size. When set to0
, the watermark cache is disabled. 256 watermarks are cached by default.
Read more about watermarks in the Watermark guide.
Unsharp masking
imgproxy Pro can apply unsharp masking to your images.
IMGPROXY_UNSHARP_MASKING_MODE
: pro controls when unsharp masking should be applied. The following modes are supported:auto
: (default) apply unsharp masking only when an image is downscaled and thesharpen
option has not been set.none
: unsharp masking is not applied.always
: always applies unsharp masking.
IMGPROXY_UNSHARP_MASKING_WEIGHT
: pro a floating-point number that defines how neighboring pixels will affect the current pixel. The greater the value, the sharper the image. This value should be greater than zero. Default:1
IMGPROXY_UNSHARP_MASKING_DIVIDER
: pro a floating-point number that defines unsharp masking strength. The lesser the value, the sharper the image. This value be greater than zero. Default:24
Smart crop
IMGPROXY_SMART_CROP_ADVANCED
: pro whentrue
, enables usage of the advanced smart crop method. Advanced smart crop may take more time than regular one, yet it produces better results.IMGPROXY_SMART_CROP_FACE_DETECTION
: pro whentrue
, adds an additional fast face detection step to smart crop.
Object detection
imgproxy can detect objects on the image and use them to perform smart cropping, to blur the detections, or to draw the detections.
IMGPROXY_OBJECT_DETECTION_CONFIG
: pro the path to the neural network config. Default: blankIMGPROXY_OBJECT_DETECTION_WEIGHTS
: pro the path to the neural network weights. Default: blankIMGPROXY_OBJECT_DETECTION_CLASSES
: pro the path to the text file with the classes names, one per line. Default: blankIMGPROXY_OBJECT_DETECTION_NET_SIZE
: pro the size of the neural network input. The width and the heights of the inputs should be the same, so this config value should be a single number. Default: 416IMGPROXY_OBJECT_DETECTION_CONFIDENCE_THRESHOLD
: pro detections with confidences below this value will be discarded. Default: 0.2IMGPROXY_OBJECT_DETECTION_NMS_THRESHOLD
: pro non-max supression threshold. Don't change this if you don't know what you're doing. Default: 0.4
Fallback image
You can set up a fallback image that will be used in case imgproxy is unable to fetch the requested one. Use one of the following variables:
IMGPROXY_FALLBACK_IMAGE_DATA
: Base64-encoded image data. You can easily calculate it withbase64 tmp/fallback.png | tr -d '\n'
.IMGPROXY_FALLBACK_IMAGE_PATH
: the path to the locally stored imageIMGPROXY_FALLBACK_IMAGE_URL
: the fallback image URLIMGPROXY_FALLBACK_IMAGE_HTTP_CODE
: the HTTP code for the fallback image response. When set to zero, imgproxy will respond with the usual HTTP code. Default:200
IMGPROXY_FALLBACK_IMAGE_TTL
: a duration (in seconds) sent via theExpires
andCache-Control: max-age
HTTP headers when a fallback image was used. When blank or0
, the value fromIMGPROXY_TTL
is used.IMGPROXY_FALLBACK_IMAGES_CACHE_SIZE
: pro the size of custom fallback images cache. When set to0
, the fallback image cache is disabled. 256 fallback images are cached by default.
Presets
Read more about imgproxy presets in the Presets guide.
There are two ways to define presets:
Using an environment variable
IMGPROXY_PRESETS
: a set of processing preset definitions, comma divided. Example:default=resizing_type:fill/enlarge:1,sharp=sharpen:0.7,blurry=blur:2
. Default: blank
Using a command line argument
imgproxy -presets /path/to/file/with/presets
This file should contain preset definitions, one per line. Lines starting with #
are treated as comments. Example:
default=resizing_type:fill/enlarge:1
# Sharpen the image to make it look better
sharp=sharpen:0.7
# Blur the image to hide details
blurry=blur:2
Using only presets
imgproxy can be switched into "presets-only mode". In this mode, imgproxy accepts only preset
option arguments as processing options. Example: http://imgproxy.example.com/unsafe/thumbnail:blurry:watermarked/plain/http://example.com/images/curiosity.jpg@png