Image resampling can enhance adversarial robustness by preserving semantic information while mitigating perturbations.