Aperture size in photography and optics refers to the opening in a lens through which light passes to enter the camera, directly affecting the exposure and depth of field in an image. A larger aperture allows more light to reach the sensor, resulting in a brighter image and a shallower depth of field, while a smaller aperture allows less light, resulting in a darker image and a greater depth of field.