The Little Guy Posted November 20, 2007 Share Posted November 20, 2007 Fatal error: Out of memory (allocated 73400320) (tried to allocate 4422 bytes) in /home/.marble/ryannaddy/beta.tzfiles.com/incl/db.php on line 111 function transparentGifShow($imageDirectory,$thumbDirectory, $imageName,$percent = 1){ $image = imagecreatefromgif("$imageDirectory/$imageName"); $details = getimagesize("$imageDirectory/$imageName"); $thumbHeight = $details[1] * $percent; $thumbWidth = $details[0] * $percent; $resized = imagecreatetruecolor($thumbWidth, $thumbHeight); $colorTransparent = imagecolortransparent($image); imagepalettecopy($image, $resized); imagefill($resized, 0, 0, $colorTransparent); imagecolortransparent($resized, $colorTransparent); imagecopyresized($resized, $image, 0, 0, 0, 0, $thumbWidth, $thumbHeight, $details[0], $details[1]); imagegif($resized); } Line 111: $resized = imagecreatetruecolor($thumbWidth, $thumbHeight); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.