Image encoding is described. Log-luminances in an HDR input image are histogrammed to generate a tone-map, along with which a log global tone-mapped luminance image is computed. The log global tone-mapped luminance image is downscaled. The log-luminances and the log global tone-mapped luminance image generate a log ratio image. Multi-scale resolution filtering the log ratio image generates a log multi-scale ratio image. The log multi-scale ratio image and the log luminances generate a second log tone-mapped image, which is normalized to output a tone-mapped image based on the downscaled log global tone-mapped luminance image and the normalized image. The HDR input image and the output tone-mapped image generate a second ratio image, which is quantized.