Ok so i've narrowed it down to your imagecreatefromtruecolor() function.
You need to check what type the image is then use the appropriate function.
For JPG fiels its imagecreatefromjpeg(), for GIF files its imagecreatefromgif(). Ect ect
you really should try downloading the manual, that's how I'm helping you at the moment.
|