$size = getImageSize( $archivo ); if( $size[0] > XX || $size[1] > YY ) $error = "Las dimensiones no son correctas";