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! Link to comment https://forums.phpfreaks.com/topic/224220-change-image-background/ 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 Link to comment https://forums.phpfreaks.com/topic/224220-change-image-background/#findComment-1158521 Share on other sites More sharing options...
iPixel Posted January 12, 2011 Author Share Posted January 12, 2011 You da man! Link to comment https://forums.phpfreaks.com/topic/224220-change-image-background/#findComment-1158524 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.