What is the purpose of AdjustmentsSecondary.data included in the PHAssetResource for a cleaned-up image?
When using creationRequest.addResource, what should be set for the PHAssetResourceType?
If I set the PHAssetResourceType as follows to create an asset, it appears correctly in the camera roll. However, when attempting to edit the image in the Photos app, the app crashes:
IMG_5332.HEIC → .photo
FullSizeRender.HEIC → .fullSizePhoto
Adjustments.plist → .adjustmentData
AdjustmentsSecondary.data → .adjustmentData
Post
Replies
Boosts
Views
Activity
I generated an asset in the photolibrary by adding the unedited image, adjustmentData, and edited image with PHAssetCreationRequest.addResouce(). The image is saved in the photolibrary as HEIF. (Check with the photolibrary)
Then, when I save the image generated with PHAssetCreationRequest.addResouce() to the Files app, it becomes JPEG.
On the other hand, even if I edit an image taken with the camera and save it to the Files app, it still maintains the HEIF.
Do you know why this happens?
Also, how can I maintain the HEIF even when saving it in the Files app?
Thanks.
I got a slow-motion video asset from the camera roll. But I can't get the URL from that asset.
Do you know how to get the URL?