Most likely a php error is occurring on converting the image format to JPG.
add the following code at line of your page for troubleshooting:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
if(isset($_FILES)) { var_dump($_FILES); }
?>
and post back the results on testing the upload again.