Require images to be a certain aspect ratio

It’d be great if I could require that an image that’s uploaded must be 16:9 or 1:1 etc.