Benford's law had been proposed in the past as a way to modelize the probability distribution of the first digit in a set of natural numbers. We show in this paper that the magnitude of the gradient of an image obeys this law. We show, experimentally, that this also applies for the laplacian pyramid code. This yields to the field of entropy based coding which takes advantage of the a priori information about the probability of any symbol in the signal.