Always use the firmware extraction method.
The "boot image" ( boot.img ) is a critical system file that contains the kernel and ramdisk. You must use a boot image that exactly matches your device's current firmware version and build number to avoid boot loops or system instability. boot image for magisk 25.2