             regift = Regift(sourceFileURL: videoURL as URL, destinationFileURL: nil, startTime: start as! Float, duration: duration as! Float, frameRate: frameCount, loopCount: loopCount)
         } else {
             // untrimmed gif
+            print("untrimmed!")
             regift = Regift(sourceFileURL: videoURL as URL, frameCount: frameCount, delayTime: delayTime, loopCount: loopCount)
         }
         let gifURL = regift.createGif()

        navigationController?.pushViewController(gifEditorVC, animated: true)
    }
    
}

            let start: NSNumber? = info["_UIImagePickerControllerVideoEditingStart"] as? NSNumber
            let end: NSNumber? = info["_UIImagePickerControllerVideoEditingEnd"] as? NSNumber
            var duration: NSNumber?
            if let start = start, let end = end {
                duration = NSNumber(value: (end.floatValue) - (start.floatValue))
            } else {
                duration = nil
            }
