X ray ghost imaging (XGI) offers both radiation dose-reduction potential and cost-effective benefits owing to the utilization of a single-pixel detector. Most XGI schemes with laboratory x ray sources require a mechanically moving mask for either structured illumination or structured detection. In either configuration, however, its resolution remains limited by the source size and the unit size of the mask. Upon propagation, the details of the object can actually be magnified by the divergence of x rays, but at the same time, the penumbra effect produced by the finite source size is dramatically intensified, which ultimately leads to a degradation of image quality in XGI. To address these limitations, this work proposes a magnified XGI scheme using structured detection equipped with tapered polycapillary optics, which can efficiently suppress the object's penumbra as well as resolve the magnified details of the object. In general, the resolution of this scheme is no longer affected by the source size but by the microcapillary size of polycapillary. Our work fundamentally achieves cancellation of penumbra effect-induced aberration, thus paving the way for high-resolution magnified XGI.