ALAsset getting HDR image or not
tried to do a search but didn’t see this question anywhere. Is there a property in ALAsset that lets me know whether a specific ima开发者_运维知识库ge is HDR or not? thanks.
Not directly, but you can get the photo metadata from the ALAsset and check for the presence of the "CustomRendered" key. I believe that it's set to a value higher than 1 for HDR images by the iPhone camera. Just tested and got one with a value of 3 but I've heard of people getting different values so your mileage may vary.
精彩评论