Relating spatially resolved optical attenuation, dust, and gas in nearby galaxies | Synapse