Difference between 'quality' and 'resolution' for capturing photos

I want to know how I should think about the difference between the ‘quality’ attribute (1 to 100) of the multiple-photo capture functionality vs the ‘resolution’ attribute (small, medium and large) of the capture-photo component