resources for image cleanup

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
resources for image cleanup
 
 
Q