For a particularly interference-free recording of x-ray images, an x-ray imaging system that includes an x-ray source for irradiating an examination object positioned in an examination region with x-ray radiation, and an x-ray detector for converting the x-ray radiation into image data of the examination object is provided. The x-ray source and the x-ray detector are arranged on an adjustable mount. The x-ray imaging system also includes a metal detection apparatus for detecting metal objects that are arranged at least partially within a field of view of the x-ray detector. A corresponding method includes receiving an instruction to record at least one x-ray image, activating the metal detection apparatus, and scanning the field of view of the x-ray detector for metallic objects using the metal detection apparatus. A display or a signal is output in the event of a detection of a metallic object.