Conformational isomers (conformers) of molecules play a decisive role in biology and organic chemistry. However, experimental methods for investigating chemical reaction dynamics are typically not conformer-sensitive. We report on a gas-phase megaelectronvolt ultrafast electron diffraction investigation of α-phellandrene undergoing an electrocyclic ring-opening reaction. We directly imaged the evolution of a specific set of α-phellandrene conformers into the product isomer predicted by the Woodward-Hoffmann rules in real space and time. Our experimental results are in quantitative agreement with nonadiabatic quantum molecular dynamics simulations, which provide considerable detail of how conformation influences the time scale and quantum efficiency of photoinduced ring-opening reactions.