A unified picture of breaks and truncations in spiral galaxies from SDSS and S4G imaging