2
외부 하드웨어에서 가져온 이미지가 포함 된 내 NSData
에는 메타 데이터가 있습니다. 이미지를 AWS로 업로드하여 테스트했습니다.메타 데이터 (EXIF 데이터)를 사용하여 NSData를 UIImage로 변환
나는이 두 가지 변환을 시도 :
UIImage *image = [UIImage imageWithData:_downloadedImageData ];
UIImage *image = [[UIImage alloc] initWithData:_downloadedImageData];
내 연구를하고 NSData
는 그 반대의 경우도 마찬가지 메타 데이터 (EXIF 데이터) UIImage
로 변환하거나 때마다 발견 한이 손실됩니다. 내가 변환 할 방법 등을 모두 변환 즉 NSData
를 검색하는 단계; [[pathArr objectAtIndex : 0] stringByAppendingPathComponent : @ "_ downloadedImageData"]; [[pathArr objectAtIndex : 0] stringByAppendingPathComponent : @ "downloadedImageData.data"]; [[pathArr objectAtIndex : 0] stringByAppendingPathComponent : @ "downloadedImageData"]; –
@NithinReddyGaddam [link] (http://stackoverflow.com/questions/7965299/write-uiimage-along-with-metadata-exif-gps-tiff-in-iphone-photo-library)를 따라주세요. –