Building a custom module and would like to have this option implemented so user will not be able to upload image if the width and height is not as specified. :P
Found this example:
public function validateUploadFile($filePath) {
$testsize[] = getimagesize($filePath);
if (!(getimagesize($filePath)) || ($testsize[0][0] < 900) || ($testsize[0][1] < 900)) {
Mage::throwException($this->__('Image size must be same or greater than 900px * 900px .'));
}
$_processor = new Varien_Image($filePath);
return $_processor->getMimeType() !== null;
}
but not sure if it works (not tested yet). If anyone know how to and where to add this code .... should I rewrite image upload function or ....
Sorry guys, I should mention that I'm talking about admin not customer side.