The unique diagnostic possibilities of X‐ray diffraction, small X‐ray scattering and phase‐contrast imaging techniques applied with high‐intensity coherent X‐ray synchrotron and X‐ray free‐electron laser radiation can only be fully realized if a sufficient dynamic range and/or spatial resolution of the detector is available. In this work, it is demonstrated that the use of lithium fluoride (LiF) as a photoluminescence (PL) imaging detector allows measuring of an X‐ray diffraction image with a dynamic range of ∼107 within the sub‐micrometre spatial resolution. At the PETRA III facility, the diffraction pattern created behind a circular aperture with a diameter of 5 µm irradiated by a beam with a photon energy of 500 eV was recorded on a LiF crystal. In the diffraction pattern, the accumulated dose was varied from 1.7 × 105 J cm−3 in the central maximum to 2 × 10−2 J cm−3 in the 16th maximum of diffraction fringes. The period of the last fringe was measured with 0.8 µm width. The PL response of the LiF crystal being used as a detector on the irradiation dose of 500 eV photons was evaluated. For the particular model of laser‐scanning confocal microscope Carl Zeiss LSM700, used for the readout of the PL signal, the calibration dependencies on the intensity of photopumping (excitation) radiation (λ = 488 nm) and the gain have been obtained. [ABSTRACT FROM AUTHOR]