Conformational isomers or conformers of molecules play a decisive role in chemistry and biology. However, experimental methods to investigate chemical reaction dynamics are typically not conformer-sensitive. Here, we report on a gas-phase megaelectronvolt ultrafast electron diffraction investigation of {alpha}-phellandrene undergoing an electrocyclic ring-opening reaction. We directly image the evolution of a specific set of {alpha}-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 unprecedented detail of how conformation influences time scale and quantum efficiency of photoinduced ring-opening reactions. Due to the prevalence of large numbers of conformers in organic chemistry, our findings impact our general understanding of reaction dynamics in chemistry and biology.