Below you can see the front-view size comparison of the Canon G16 and Canon G5 X. The Canon G16 is 3 mm narrower and 4 mm thinner than the Canon G16 but they have the same height of 76 mm.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.