                 } else {
                     asset.fileName = asset.localIdentifier
                 }
-                
-                #if swift(>=4.0)
-                if let track = avAsset.tracks(withMediaType: .video).first {
-                    let size = __CGSizeApplyAffineTransform(track.naturalSize, track.preferredTransform)
-                    asset.width = Float(size.width)
-                    asset.height = Float(size.height)
-                }
-                #else
-                if let track = avAsset.tracks(withMediaType: AVMediaTypeVideo).first {
-                    let size = __CGSizeApplyAffineTransform(track.naturalSize, track.preferredTransform)
-                    asset.width = Float(size.width)
-                    asset.height = Float(size.height)
-                }
-                #endif
                 
                 DKImageAssetExporter.ioQueue.async {
                     let group = DispatchGroup()

        }
    }
    
    private func imageToJPEG(with image: UIImage) -> Data? {
        return UIImageJPEGRepresentation(image, 0.9)
    }
    
    private func generateTemporaryPath(with asset: DKAsset) -> URL {

                                asset.fileName = fileURL.lastPathComponent
                            }
                            
                            if FileManager.default.fileExists(atPath: asset.localTemporaryPath!.path) {
                                return completion(nil)
                            }
                            
                            if  self.configuration.imageExportPreset == .compatible && self.isHEIC(with: imageData) {
                                imageData = self.imageToJPEG(with: imageData) ?? imageData
                            }
                            
                            do {
