Invariants at arbitrary and fixed energy (strongly and weakly conserved quantities) for two-dimensional Hamiltonian systems are treated in a unified way. This is achieved by utilizing the Jacobi metric geometrization of the dynamics. Using Killing tensors we obtain an integrability condition for quadratic invariants which involves an arbitrary analytic function S(z). For invariants at arbitrary energy the function S(z) is a second-degree polynomial with real second derivative. The integrability condition then reduces to Darboux's condition for quadratic invariants at arbitrary energy. The four types of classical quadratic invariants for positive-definite two-dimensional Hamiltonians are shown to correspond to certain conformal transformatio...