There is a point which can complete the previous answers: geometric optics is an approximate theory and the rays never really intersect at a point: the image of a point is a spot and what matters is the size of the image spot.
In the case of an object very close to the focus, the theoretical image is very distant but above all, the depth of field is enormous: if you move the screen further or closer, the image will remain sharp.
Let's take an example: a converging lens of 10 cm focal length and an object point $A$ on the axis 1 mm before the object focus $F$. In theory, the image is easily found using the Newton relation $ \overline{FA} \overline{F’A’} = -f^2$.
So $\overline{F'A'}=\frac{10^{-2}}{10^{-3}}=10$ m and the magnification is very close to $\frac{10}{10^{- 1}}=100$.
In principle, if the object $AB$ perpendicular to the optical axis measures 1 cm, its image $A'B'$ is at 10 m from the lens and $A'B'=$ 1 m .
But what happens if I put the screen at 20 m from the lens. Suppose the lens's diameter is 5 cm. The beam coming from $A$ and converging towards $A'$ is a cone of angle at the vertex $\frac{5^{-2}}{10}=10^{-3}$ rad and therefore, if l If the screen is 10 m back, the size of the spot will be 5 cm (evidently !). We must compare the size of this spot to the centers of the beams : 2 m. 5 cm is not much compared to 2 m and the image will remain sharp.
Ultimately, by bringing the object closer to the focus, each point $A$ or $B$ will give a parallel beam of 5 cm in diameter and as soon as the distance between the centers of the two beams is large compared to 5 cm , the image will be sharp. For an object $AB$ of 1 cm placed 10 cm from the lens, the distance will be 1 m at 10 m from the lens: beyond that, the distance no longer matters: we are "at infinity".
In geometric optics, the "position of infinity" depends on the size of the object, the size of the lens and the resolution of the recording system.
This phenomenon is well known in the other direction, when we make an image on a screen of an object “at infinity”. Just look at the adjustment ring of an old camera: infinity is a few meters in front of the lens!
As a joke, we can note the difficulties our philosopher or mathematician colleagues have in mastering the infinite. In optics, it's much calmer: we can say, infinity is there, at 5 m !
To conclude, do not forget that all optical instruments have aberrations and that the notion of geometric image is an approximate concept.
Hope it can help and sorry for my poor english !