Code: Select all
Error resample image:
I did get this error with folder.jpg as well though it was a completely different file
Code: Select all
Error resample image:
Code: Select all
$extension = substr(strrchr($image, '.'), 1);
$extension = strtolower($extension);
$src_image = @ImageCreateFromString($image);
if ($src_image !== false) $extension = '';
elseif ($extension == 'jpg') $src_image = @ImageCreateFromJpeg($image) or message(__FILE__, __LINE__, 'error', '<strong>Error resample image:</strong><br>' . $image);
elseif ($extension == 'png') $src_image = @ImageCreateFromPng($image) or message(__FILE__, __LINE__, 'error', '<strong>Error resample image:</strong><br>' . $image);
elseif ($extension == 'gif') $src_image = @ImageCreateFromGif($image) or message(__FILE__, __LINE__, 'error', '<strong>Error resample image:</strong><br>' . $image);
else message(__FILE__, __LINE__, 'error', '<strong>Error resample image:</strong><br>Unknown extension or data.');
Code: Select all
if (is_file($image))
{
$extension = substr(strrchr($image, '.'), 1);
$extension = strtolower($extension);
}
else
$extension = '';
if ($extension == 'jpg') $src_image = @ImageCreateFromJpeg($image) or message(__FILE__, __LINE__, 'error', '<strong>Error resample image:</strong><br>' . $image);
elseif ($extension == 'png') $src_image = @ImageCreateFromPng($image) or message(__FILE__, __LINE__, 'error', '<strong>Error resample image:</strong><br>' . $image);
elseif ($extension == 'gif') $src_image = @ImageCreateFromGif($image) or message(__FILE__, __LINE__, 'error', '<strong>Error resample image:</strong><br>' . $image);
else $src_image = @ImageCreateFromString($image) or message(__FILE__, __LINE__, 'error', '<strong>Error resample image:</strong><br>Unknown extension or data.');
Did you use the latest version of netjukebox?Coolio472 wrote:I followed the above instructions because I was running into the same error. Now I get this error instead:
<strong>Error resample image:</strong><br>C:/****/*****/*****/****/cd_front.jpg
What do I do to resolve this? It looks more like a copy past error on my part but I don't know where it is.