Have you tried error checking?
When debugging image code, you should always try it wihout the image headers, because they hide the errors.
Also, you should turn error reporting up
error_reporting(E_ALL);
if (!$src_img = ImageCreateFromJPEG($path))
{
echo 'failed to open image';
}
else
{
if (!ImagePng($src_img, "", 100))
{
echo 'Could not create image';
}