Pascal's law
Pressure is force divided by area. Because the pressure is the same on both pistons, F2 / A2 = F1 / A1, which rearranges to F2 = F1 x A2 / A1. For round pistons the area ratio is the square of the diameter ratio.
Energy is conserved, so the volume of oil pushed out of the small cylinder equals the volume that enters the large one. The large piston's travel is therefore the small piston's travel divided by the same area ratio.
What the drawing simplifies
Real presses use a pump with check valves so the operator can stroke the small piston again and again, building up travel bit by bit. Seal friction costs a few percent of the force. In this scene the big piston's motion is drawn five times larger than true so you can see it at all.