Method of producing an X-ray image by means of a photoconductor layer which has a characteristic discharge function, which tends to self-discharge causing artifacts in the image, which converts X-radiation into a charge pattern, is evenly charged locally before the X-ray exposure, is discharged by the exposure as a function of the intensity of the X-radiation and the surface of which is scanned after the exposure for detecting the charge density, an image value being formed for each image point corresponding to the discharge at the image point, said method comprising:
- determining the self-discharge (dB) at each image point from the time elapsed since a preceding exposure up to the end of the charging or until reading-out, from the characteristic discharge function (f(t)) of the photoconductor and from a correction factor (k) dependent on the dose at each image point in the preceding exposure;
- and correcting the associated image value (B.sub.1) produced by said charge pattern for the effect of said self-discharge (db) on said image value (B.sub.1).