im pretty sure it is, it does upload it on my other hosting, also I tried different jpg img, and all failed, lemme check the CHMOD, that MIGHT be the problem.
to Bryon, k, wait a sec.................................
also, have you seen my pm I sent you, i need some help, i can send the pm again.
EDIT: nope, nothing to do with CHMOD :< also it doesnt work with ALL the jpeg files I upload... ^_^
this is my script, its a bit rubbish, i never touched the library thing before.
PHP Code:
<?php
$fileparts = explode(".", $filename);
if ($fileparts[1]==jpg)
{$filetype="jpeg";}
else
if ($fileparts[1]==gif)
{$filetype="gif";}
else
if ($fileparts[1]==png)
{$filetype="png";}
$imagecreatefrom='imagecreatefrom'.$filetype;
$src_img = $imagecreatefrom("work/$categories/$filename");
$src_size = getimagesize("work/$categories/$filename");
$ratio=$src_size[0]/150;
$dest_x = $src_size[0] / $ratio;
$dest_y = $src_size[1] / $ratio;
$dst_img = imagecreatetruecolor
($dest_x, $dest_y);
imagecopyresampled($dst_img, $src_img, 0, 0, 0,
0, $dest_x, $dest_y, $src_size[0],
$src_size[1]);
$widthm1 = $dest_x - 1;
$heightm1 = $dest_y - 1;
$color = imagecolorallocate($dst_img, 161, 171, 181);
imageline( $dst_img, 0,0, $widthm1, 0, $color);
imageline( $dst_img, $widthm1, 0, $widthm1, $heightm1, $color);
imageline( $dst_img, $widthm1, $heightm1, 0, $heightm1, $color);
imageline( $dst_img, 0, $heightm1, 0, 0, $color);
imagepng($dst_img, "work/$categories/small_$filename");
imagedestroy($src_img);
imagedestroy($dst_img);
$resolution="$src_size[0]"."x"."$src_size[1]";
mysql_query("UPDATE `work` SET `resolution` = '$resolution' WHERE `filename` = '$filename'");
?>
By the way, the script DID work for x10hosting a while back, didn't know when it started to cock up, its been like a month since I uploaded any wallpapers xD