The possibility of compensating for the aberrations of an imaging lens in digital holography is outlined theoretically. The principle is demonstrated with a Mach-Zehnder arrangement and transilluminated objects. Diffraction-limited resolution can be obtained with a plano-convex lens. Amplitude and phase objects were imaged.