here i'm posting a very basic script that i tried on my computer, as u will see functions from gd library are used in here, i'm not sure but imagejpeg may be the problem: i get binary characters (characters that makes no sense to me, for sure they tell something about RGB isn't it? Whatever...) Please can someone try this code on their computer and tell me what is the result, and if someone can guess what i'm doing i will be so glad; i do not have much experience in php and actually i'm working on images for the first time as a code developer, so i'm ready to hear if you have better ideas than gd
<?
$filename = 'images/anyimage.jpg';
$myimage=imagecreatefromjpeg($filename);
list($width,$height)=getimagesize($filename);
imagecopyresized($myimage,$myimage,0,0,0,0,50,50,$width,$height);
imagejpeg($myimage);
?>