Below you can see the front-view size comparison of the Nikon P7100 and Canon G12. The Canon G12 is 4 mm narrower and 1 mm shorter than the Nikon P7100 but they have the same thickness of 48 mm.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.