The magnification of the image is
compares sizes, its sign orientations (: inverted); the sign of reads the nature (positive: real, behind the lens; negative: virtual, in front).
Examples
Example 10.10 (The formula at work)
An object stands in front of a converging lens with : , so
a real image behind the lens, inverted, half-size — exactly what the three rays draw.