Optically read out gaseous detectors are used in track reconstruction and imaging applications requiring high granularity images. Among resolution-determining factors, the amplification stage plays a crucial role and optimisations of detector geometry are pursued to maximise spatial resolution. To compare MicroPattern Gaseous Detector (MPGD) technologies, focused low-energy X-ray beams at the SOLEIL synchrotron facility were used to record and extract point spread function widths with Micromegas and GEM detectors. Point spread function width of ≈108\,\microns for Micromegas and ≈127\,\microns for GEM foils were extracted. The scanning of the beam with different intensities, energies and across the detector active region can be used to quantify resolution-limiting factors and improve imaging detectors using MPGD amplification stages.