Compactness and resolution