How delete exif data in this function?
<p>I don't know how delete <code>exif</code> data from uploaded pictures. Here is my function:</p>
<pre><code>$uploadedFiles = $request-&gt;getUploadedFiles();

if ($uploadedFiles &amp;&amp; $id) {
    $usersPath = '/collections/' . date('Y/m') . '/' . $id .'/';
    $uploadFolder = realpath(BASE_PATH . '/uploads');
    $uploadFolder .= $usersPath;
    $newName = md5(time() . serialize($uploadedFiles));

    $fileExtension = strtolower($uploadedFiles[0]-&gt;getExtension());
    $sourceImgPath = $uploadFolder .$newName .'.' .$fileExtension;

    if (!file_exists($uploadFolder)) {
        mkdir($uploadFolder, 0777, true );
    }

    if(in_array($fileExtension, array('jpg', 'jpeg', 'png', 'gif'))){

        if ($uploadedFiles[0]-&gt;moveTo($sourceImgPath)) {
            $info = pathinfo($sourceImgPath);

            if ($info) {
                $file_path = $usersPath . $info['filename'] . '.' . $fileExtension;
                (new \Rapid\Storage\CollectionsStorage())-&gt;editImage($id, $file_path);
            } else {
                $session-&gt;set('msg_error', $this-&gt;translate-&gt;_('There was an unexpected error with uploading the file'));
            }
        }
    }
} else {
    $session-&gt;set('msg_error', $this-&gt;translate-&gt;_('Invalid file type'));
}
</code></pre>