Skip to content

Commit 63f3e8b

Browse files
committed
preserve_hdr section
1 parent c82b328 commit 63f3e8b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

versioned_docs/version-4-pre/usage/processing.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,17 @@ scp:%strip_color_profile
787787

788788
When set to `1`, `t` or `true`, imgproxy will transform the embedded color profile (ICC) to sRGB and remove it from the image. Otherwise, imgproxy will try to keep it as is. This is normally controlled by the [IMGPROXY_STRIP_COLOR_PROFILE](../configuration/options.mdx#IMGPROXY_STRIP_COLOR_PROFILE) configuration but this processing option allows the configuration to be set for each request.
789789

790+
### Preserve HDR
791+
792+
```imgproxy_url_option
793+
preserve_hdr:%enable
794+
ph:%enable
795+
```
796+
797+
If set to `1`, `t` or `true`, high bit image will [remain high bit](../image_formats_support.mdx#colorspace-and-hdr-preservation). If set to `0`, `f` or `false`, high bit image will be downscaled to 8 bit. Overrides [`IMGPROXY_PRESERVE_HDR`](../configuration/options.mdx#IMGPROXY_PRESERVE_HDR) value.
798+
799+
Default: [`IMGPROXY_PRESERVE_HDR`](../configuration/options.mdx#IMGPROXY_PRESERVE_HDR) value.
800+
790801
### Color profile ((pro)) {#color-profile}
791802

792803
```imgproxy_url_option

0 commit comments

Comments
 (0)