Hello,
I have modified the AVCam sample found here: https://developer.apple.com/library/prerelease/content/samplecode/AVCam/Introduction/Intro.html to capture and save DNG files.
When attempting to save the (valid) DNG using
PHAssetCreationRequest *creationRequest = [PHAssetCreationRequest creationRequestForAsset];
[creationRequest addResourceWithType:PHAssetResourceTypePhoto data:self.photoData options:nil];It fails with "Error Domain=NSCocoaErrorDomain Code=-1 "(null)"
Alternatively, if I try saving the DNG with:
[[[ALAssetsLibrary alloc] init] writeImageDataToSavedPhotosAlbum:self.photoData metadata:nil completionBlock:^(NSURL *assetURL, NSError *error)]A .TIF file is saved to the Camera Roll. This photo cannot be displayed by the Camera Roll (it shows up, just shows up blank), but if I transfer that file to my computer and rename the extension to .DNG, the photo loads just fine.
Is anyone else having these issues? Is there a better / correct way to save DNGs? Are they known bugs in iOS 10 beta 8?
Thank you!