# HDR Gain Map support for photos?

**URL:** <https://meta.discourse.org/t/hdr-gain-map-support-for-photos/415261>\
**Category:** Product Support\
**Created:** [October 20, 2026, 11:35pm UTC](https://meta.discourse.org/t/hdr-gain-map-support-for-photos/415261 "2026-10-20T23:35:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [October 23, 2026, 6:05pm UTC](https://meta.discourse.org/t/hdr-gain-map-support-for-photos/415261/2 "2026-10-23T18:05:24Z")

</div>

> [@davidkingham](#):
>
> This is odd because I tested this many years ago and it did work, but maybe that support has been removed?

Yeah, it’s not that we specifically removed support… it’s that we do a lot more image processing and optimization than we used to and it’s a consequence of that.

I did some testing on a local instance, and I think the key for HDR images in Discourse right now is to use an AVIF format with a gain map, which will avoid optimization without any site setting changes.

One catch is that we do not keep the gain map when resizing, so if your site has the `Create thumbnails` site setting enabled… then you only see the HDR version of the image when you click the thumbnail to view the lightboxed image. You could disable that setting, but it means everyone visiting your site is always downloading the full sized image… which can be quite a lot on slow or metered connections, but maybe this is an acceptable tradeoff on a photography site.

Here’s an example AVIF image from [Eric Chan](https://people.csail.mit.edu/ericchan/) that should work in HDR on Meta when opened in the lightbox. You can probably see some color shifts going from thumbnail → lightbox.

 ![01_base_sdr](https://global.discourse-cdn.com/meta/original/4X/c/a/7/ca77f496adfbec2745e09e21f754018e27670026.avif)

---

_[View the full topic](https://meta.discourse.org/t/hdr-gain-map-support-for-photos/415261)._
