How to validate image with specific height and width selection in media selector

How to validate image with specific height and width selection in media selector