How to capture IMX477 image on RPi 4 @ max resolution?

1.Which seller did you purchase the product(s) from?
2.The Model number of the product(s) you have purchased?
3.Which Platform are you using the product(s) on?
RPi 4B
4.Which instruction are you following?
Online forums, etc.
5.Has your product ever worked properly?
Never worked?
6.What problems are you experiencing?


As noted, purchased a B0240 12MP camera w/ lens kit from UCTRONICS. Using an RPi 4B w/ latest version from (Buster 03-04-2021) and raspistill using (among other iterations of the command):

raspistill -md 3 -q 100 -k -o hires.jpg
... I am only able to obtain a .jpg that is 5.4MB in size. All iterations of the command produce the same result. With verbose option, the following is obtained (seemingly confirming the board and sensor size is correctly detected):
"raspistill" Camera App (commit 4a0a19b88b43 Tainted) Camera Name imx477 Width 4056, Height 3040, filename hires.jpg Using camera 0, sensor mode 3

GPS output Disabled

Quality 100, Raw no
Thumbnail enabled Yes, width 64, height 48, quality 35
Time delay 0, Timelapse 0
Link to latest frame enabled no
Full resolution preview No
Capture method : Capture on keypress

Preview Yes, Full screen Yes
Preview window 0,0,1024,768
Opacity 255
Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 0, Video Stabilisation No, Exposure compensation 0
Exposure Mode ‘auto’, AWB Mode ‘auto’, Image Effect ‘none’
Flicker Avoid Mode ‘off’
Metering Mode ‘average’, Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip No, vflip No
ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000
Camera component done
Encoder component done
Starting component connection stage
Connecting camera preview port to video render.
Connecting camera stills port to encoder input port
Press Enter to capture, X then ENTER to exit

I would expect an image of a much greater size.

Should I be using different software? Settings?

Thanks in advance,



7.What attempts at troubleshooting have you already made?
see message
8.How would you like us to help you?


Thanks for your contacting us. Don’t worry and I will try my best to help you.

For the 12MP the maxmum resolution is 4056x3040, and you can’t get more bigger resolution.

About the 5.4MB in size, it is due to in jpeg format, it will compress the image data. You can try to get another pixel format such as BMP or PNG using raspistill command.

Feel free to let me know if you need more help.