Below you can see the front-view size comparison of the Canon G5 X and Panasonic ZS100. The Panasonic ZS100 is 1 mm narrower and 11 mm shorter than the Canon G5 X but they have the same thickness of 44 mm.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.