XPAD3S is a single-photon-counting chip developed in collaboration by SOLEIL Synchrotron, the Institut Louis Néel and the Centre de Physique de Particules de Marseille. The circuit, designed in the 0.25 mm IBM technology, contains 9600 square pixels with 130 mm side giving a total size of 1 cm _ 1.5 cm. The main features of each pixel are: single threshold adjustable from 4.5 keV up to 35 keV, 2 ms frame rate, 107 photons s_1 mm_2 maximum local count rate, and a 12-bit internal counter with overflow allowing a full 27-bit dynamic range to be reached. The XPAD3S was hybridized using the flip-chip technology with both a 500 mm silicon sensor and a 700 mm CdTe sensor with Schottky contacts. Imaging performances of both detectors were evaluated...