hyperoslo / ImagePicker

:camera: Reinventing the way ImagePicker works.
Other
4.87k stars 678 forks source link

exif information lost in the photo #396

Closed memetea closed 4 years ago

memetea commented 6 years ago

ImagePicker convert the jpeg represent data to UIImage and then return it to application. the exif information lost in such transfer. return the exif is better because application may use it.

sedwo commented 6 years ago

@memetea Try this: https://github.com/sedwo/ImagePicker

vikrant327 commented 5 years ago

I tried using the https://github.com/sedwo/ImagePicker , but imageFileURL are all nil. What am I doing wrong?

sedwo commented 5 years ago
    func showImagePickerAction() {
        let config = Configuration()
        config.savePhotosToCameraRoll = false
        config.exifUserComment = appNameVersionAndBuildDateString() // As an fyi: tag new photos with app build string.

        let imagePicker = ImagePickerController(configuration: config)
        imagePicker.delegate = self
        ImagePickerController.photoQuality = AVCaptureSession.Preset.photo  // full resolution photo quality output

        present(imagePicker, animated: true, completion: nil)
    }
vikrant327 commented 5 years ago

I am still getting nil for images.first?.imageFileURL in doneButtonDidPress function.

I need to get X Y location info for each photo.

vikrant327 commented 5 years ago

Any Idea why imageFileURL is returning nil ?, or anything I need to change to get the file path.