HDR Gain Map support for photos?

Ideally we would keep the image format, by simply resizing the image and keeping stuff like HDR intact.