How to convert uploaded images always into JPG format?
<p>I have simply upload:</p>

<p>$path = "uploads/";</p>

<pre><code>$actual_image_name = time().$session_id.".".$ext;
$tmp = $_FILES['photoimg']['tmp_name'];
move_uploaded_file($tmp, $path.$actual_image_name);
</code></pre>

<p>How can i add for this function imagejpeg? I would like always save image with JPG format.</p>
