From the beginnings of medical imaging with radioactivity, an account is given of the development in Aberdeen of CT scanners in nuclear medicine, and their clinical value, leading to the present-day gamma-cameras. Early animal work with electron magnetic resonance is described, which developed into a programme towards nuclear magnetic resonance of water in body tissues. The 1974 NMR image of a mouse, using the nuclear medicine experience, led to a quest to build the first clinically useful whole-body MRI. The work of other teams is outlined, and the steps which led to successful diagnostic images being made with the Aberdeen machine in 1980. The welcome from the medical fraternity, and the output of the multinational medical imaging companies, has led to the present-day, worldwide use of the MRI technique.