1. In a digital medium environment for editing digital images, a computer-implemented method of reducing error enhancement while editing the digital images or videos, comprising: estimating a transmission map of an input image, the transmission map representing an amount of reflected, unscattered light from a scene of the input image; determining a radiance gradient for the input image; and generating an output image by modifying a contrast of the input image based on the transmission map while suppressing edges in the radiance gradient from appearing in the output image.