For 27", the larger of the two, (630mm/2)+32mm should equal at least 347mm from the center of the axle to either the fork crown or the underside of the middle of the brake caliper, whichever is less.
For the back, you have to measure to the brake bridge or the caliper whichever is less.
You should also measure to make sure the fork and chainstays have enough room to allow a 32mm wide tire at a point about 10-15mm above the edge of the rim, which will be 315mm from the center of the axle. If you have a bike with horizontal dropouts in back, the axle should normally be located roughly where the chainstays and seatstays would meet.
I am not sure but I think some 27" bikes may be made for a 27x1-1/8 or 28mm tire.
I had an '85 PXN10 frame which did not allow the use of 27x1-1/4 tires.