DNG issues saving to and displaying in the Camera Roll

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!

Bump


I have this issue too,

Everytime I tried to save a Raw image (.NEF in this case). It convert into a .TIF with a really small resolution (160x120) in camera roll.

When I use Photo app on Mac to extract the image, I see it has a large size (11MB , same as the original RAW image) but the resolution is really small.

DNG issues saving to and displaying in the Camera Roll
 
 
Q