Below you can see the front-view size comparison of the Canon G1 X II and Canon G5 X. The Canon G5 X is 4 mm narrower and 22 mm thinner than the Canon G1 X II but it is also 2 mm taller.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.