Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.
In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.
|Zymic Webmaster ForumsWeb Design & DevelopmentServer Side ScriptingPHP|
May 29 2012, 07:50 PM
Joined: 1-May 12
Member No.: 240,075
I've been able to create and manipulate images from scratch but today I've been trying to manipulate an existing image and all I've been getting are confusing errors.
This is my code at this point:
$black= imagecolorallocate($image2, 0, 0, 0);
$alpha= imagecolorallocatealpha($image2, 0, 0, 0, 127);
imagefilltoborder($image2, 0, 0, $alpha, $black);
$newimage= imagecopymerge($image, $image2, 0, 0, 0, 0, 500, 455, 50);
These are the errors this code gets:
Warning: imagepng() [function.imagepng]: Unable to open 'someimage.png' for writing: Permission denied in /www/zymichost.com/s/y/l/sylesca/htdocs/homestead/showanimal.phtml on line 7
Warning: imagepng(): supplied argument is not a valid Image resource in /www/zymichost.com/s/y/l/sylesca/htdocs/homestead/showanimal.phtml on line 9
Warning: imagedestroy(): supplied argument is not a valid Image resource in /www/zymichost.com/s/y/l/sylesca/htdocs/homestead/showanimal.phtml on line 11
If anyone could point out an error I've made I would really appreciate it because I am nearing the end of my rope trying to fix this script.
|Lo-Fi Version||Time is now: 21st May 2013 - 05:44 PM|