How can I validate media library image dimension validation?

I’m also interested in an answer to this question. Any luck with the solution?