How to add extra EXIF data when images are uploaded?

Update: Edited code to make it work

function proccess_to_all_image($file) {
    $file_path = $file['file'];
    $mime_type = $file['type'];
    $id = attachment_url_to_postid($file['url']);
    if (preg_match('/^image\/[a-z\-]+$/i', $mime_type)) {
      *//call to function here*
    }
    return $file;
}
add_filter( 'wp_handle_upload', 'proccess_to_all_image', 10, 2);