Unable to Capture 24MP Photos

Hello, I'm wondering how to capture 24MP photos.

I'm currently testing on an iPhone 16 Pro Max. By default, the device's activeFormat supports 24MP (photo dimensions: {4032x3024, 5712x4284}). For the photoOutput, I'm setting the maxPhotoDimensions to videoDevice.activeFormat.supportedMaxPhotoDimensions.lastObject, and setting MaxPhotoQualityPrioritization to quality.

When capturing, I'm applying the same maxPhotoDimensions and photoQualityPrioritization settings from the photoOutput directly to the AVCapturePhotoSettings. What could be the issue?

// Objective-C

// setup
[self.photoOutput setMaxPhotoQualityPrioritization:AVCapturePhotoQualityPrioritizationQuality];
CMVideoDimensions maxPhotoDimensions = [(NSValue *)videoDevice.activeFormat.supportedMaxPhotoDimensions.lastObject CMVideoDimensionsValue];
                    [self.photoOutput setMaxPhotoDimensions:maxPhotoDimensions];

// capturing
AVCapturePhotoSettings *photoSettings = [AVCapturePhotoSettings photoSettings];
photoSettings.maxPhotoDimensions = self.photoOutput.maxPhotoDimensions;
photoSettings.photoQualityPrioritization = self.photoOutput.maxPhotoQualityPrioritization;

[self.photoOutput capturePhotoWithSettings:photoSettings delegate:photoCaptureDelegate];
...

Did you ever manage to get this working? I'm also hunting for the solution when capturing ProRAW images.

https://developer.apple.com/forums/thread/771705 Based on this information, it seems that delay processing is required to save the photo at a resolution of 24MP.

Unable to Capture 24MP Photos
 
 
Q