Photons reveal magnetic effects