This paper presents a hybrid control strategy for the LLC resonant converter in X-ray machines, addressing the limitations of voltage gain range under Pulse Frequency Modulation (PFM) and dynamic response under Phase Shift Modulation (PSM). The strategy employs an improved fruit fly optimization algorithm (IFOA) to optimize PI control and integrate Hybrid Phase-Shifted and Frequency-Modulated control. It dynamically adjusts the switching frequency and phase shift angle to maintain output stability and efficiency, ensuring optimal operation under rated conditions. A Matlab-based system simulation model confirmed the stability and accuracy of the IFOA in controlling the converter. Subsequent prototype testing validated the strategy’s effectiveness in reducing conduction losses, enhancing overall efficiency, and demonstrating practical feasibility and superiority.