Skip to content

Version 4.0-rc docs#11

Open
gzigzigzeo wants to merge 2 commits intomasterfrom
version/4
Open

Version 4.0-rc docs#11
gzigzigzeo wants to merge 2 commits intomasterfrom
version/4

Conversation

@gzigzigzeo
Copy link
Copy Markdown
Collaborator

No description provided.

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 3, 2026

Deploy Preview for imgproxy-docs ready!

Name Link
🔨 Latest commit 7116b34
🔍 Latest deploy log https://app.netlify.com/projects/imgproxy-docs/deploys/69d3e7c628a73500089aa05d
😎 Deploy Preview https://deploy-preview-11--imgproxy-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.


imgproxy can cache processed images in various storage backends to improve performance and reduce processing overhead.

* [`IMGPROXY_CACHE_USE`]: ((pro)) the cache storage adapter to use. Can be `filesystem`, `s3`, `gcs`, `abs` (Azure Blob Storage), or `swift`. When blank, the cache is disabled. Default: blank
Copy link
Copy Markdown

@yaroslav yaroslav Apr 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not obvious swift stands for OpenStack, IMO

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, fixed


1. Set the `IMGPROXY_CACHE_USE` environment variable to `s3`.
2. [Set up the necessary credentials](#set-up-credentials) to grant access to your cache bucket.
3. _(optional)_ Specify the AWS region with `IMGPROXY_CACHE_S3_REGION`. Default: `us-west-1`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...or AWS_REGION

1. Set the `IMGPROXY_CACHE_USE` environment variable to `s3`.
2. [Set up the necessary credentials](#set-up-credentials) to grant access to your cache bucket.
3. _(optional)_ Specify the AWS region with `IMGPROXY_CACHE_S3_REGION`. Default: `us-west-1`
4. _(optional)_ Specify the cache bucket name with `IMGPROXY_CACHE_BUCKET`.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bucket is not optional

1. Set the `IMGPROXY_CACHE_USE` environment variable to `abs`.
2. Set `IMGPROXY_CACHE_ABS_NAME` to your Azure account name.
3. [Set up the necessary credentials](#set-up-credentials).
4. _(optional)_ Specify the cache container name with `IMGPROXY_CACHE_BUCKET`.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bucket is not optional


1. Set the `IMGPROXY_CACHE_USE` environment variable to `gcs`.
2. [Set up credentials](#setup-credentials) to grant access to your cache bucket.
3. _(optional)_ Specify the cache bucket name with `IMGPROXY_CACHE_BUCKET`.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bucket is not optional


imgproxy can store cached images on the local filesystem. To use filesystem cache, do the following:

1. Set the `IMGPROXY_CACHE_USE` environment variable to the filesystem.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filesystem => fs

* `scale_factor`: a float value that defines how much the crop area should be scaled relative to the detected objects. For example, `1.0` crops exactly to the detected objects, while `1.2` adds 20% padding around them.
* `class_name1`, `class_name2`, ..., `class_nameN`: _(optional)_ names of the object classes to detect. If class names are omitted, imgproxy crops to all detected objects.

This option is useful when you want to automatically extract the area containing specific objects from an image, such as all faces in a group photo or products in a catalog image.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a description of what happens when the fill or fill-down resizing types are used.
Add a note that IMGPROXY_OBJECT_DETECTION_GRAVITY_MODE and objects_position are respected (see the blog post).

Comment on lines +599 to +601
:::info
When no objects are detected, imgproxy will not crop the image and will process it as usual.
:::
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a note that this option overwrites crop


**When `IMGPROXY_PRESERVE_HDR` is enabled:**

* High bit images remain high bit in the output (eg, GRAYSCALE16 remains GRAYSCALE16, scRGB remains scRGB)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scRGB becomes RGB16, RGB16 remains RGB16. We don't preserve linear colorspace


**When `IMGPROXY_PRESERVE_HDR` is disabled (default):**

* High bit images are converted to 8-bit (eg, GRAYSCALE16 becomes GRAYSCALE8, RGB and scRGB become sRGB)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a mention of RGB16

@@ -1,5 +1,5 @@
.badge,
.menu__list-item--badge a::after {
.menu__list-item--badge .menu__link::after {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a couple of places with a::after below. It's better to fix this there too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants