Meta Box
Support Forum
Support › General › Force minimum image dimensionsResolved
From a search I see that this has been coming up for a couple years, but not implemented yet. Anyone know of a script I can use to require a minimum width on an image for it to be uploaded in Meta Box? This is a real problem for me right now.
Hello,
I think you can follow this article to get image dimension with a PHP function https://www.geeksforgeeks.org/php-getimagesize-function/
Then use the remote validation to check the minimum dimension of the image on your own https://docs.metabox.io/validation/
Thanks. I'll try to figure it out.