There is a surprising degree of dynamic range in JPEGS which can be exploited using a kind of HDR technique.
I made this photo by combining a (1) low contrast high brightness version with a (2) high contrast low brightness version using layering.
------------------------------------------------------------------------------------------------------------------------------------
(1)
(2)