iPixel Posted January 12, 2011 Share Posted January 12, 2011 This creates an image 1500x1500 pixels. But it creates it in black... how can i make it white. And i have to use imagecreatetruecolor() not imagecreate(). <?php $im = imagecreatetruecolor(1500,1500); // Output the image to the browser header('Content-type: image/jpg'); imagejpeg($im); imagedestroy($im); ?> Thanks! Quote Link to comment Share on other sites More sharing options...
litebearer Posted January 12, 2011 Share Posted January 12, 2011 read the end post - re: imagefill http://www.issociate.de/board/post/265102/White_background_with_imagecreatetruecolor().html Quote Link to comment Share on other sites More sharing options...
iPixel Posted January 12, 2011 Author Share Posted January 12, 2011 You da man! 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.