In this guide, we will show you the steps to fix the ‘Size of Image is Larger than the Target Device’ error in the TWRP Recovery. Recently, I was flashing a couple of ported ROMs on my Galaxy A52s 5G [One UI 7 ported from S23 FE and ColorOS 15 from OnePlus 15]. The steps were near about identical- I had been given a couple of partition files- system.img, which was the ROM file, product.img, and the odm.img. As far as the flashing goes, I was instructed to flash these files via a custom recovery.
So I booted my device to TWRP, did a format data, transferred these files via ADB Push, and then went to Install > Install Image > selected the system.img file > chose the System partition > and swiped to flash. Unfortunately, I was greeted straightaway with the Size of Image is Larger than the Target Device error in the TWRP Recovery. If you are also facing this issue, irrespective of the file being flashed, then this guide will help you rectify it. Follow along.
Fix TWRP: Size of Image is Larger than the Target Device
To rectify this issue, you have to flash these files in the Fastboot/FastbootD Mode instead of the TWRP Recovery. So, which of the two modes should you use? Well, if you have a Samsung phone, then you’ll have to use FastbootD Mode as it does not have the Fastboot Mode, whereas all the other phones can use the Fastboot Mode. Let’s understand it with the help of an example, taking a system.img file as an example:

- From TWRP, go to Reboot > Fastboot. Your device will boot to FastbootD.
- Then, download and extract the Android SDK Platform Tools on your PC.
- Next up, transfer the desired file to the platform-tools folder.
- Then open the Command Prompt window inside this folder.
- Now type the below command to flash the file:
fastboot flash <partition_name> <file_name.img>
- For example, to flash the system.img file, the command will be:
fastboot flash system system.img
- Once you have flashed the files, use the below command to boot to the OS:
fastboot reboot
- Or, use the below command to boot back to the TWRP Recovery:
fastboot reboot recovery
That’s it. These were the steps to fix the ‘Size of Image is Larger than the Target Device’ error in the TWRP Recovery. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution as soon as possible.