envexlabs Posted October 16, 2007 Share Posted October 16, 2007 Hey, I have a script that crops and image and resizes it, but that's not the problem. If the image is smaller than the crop area, PHP just fills it in with black. Is there a way to make PHP fill it in with white instead of black? Thanks, envex. Quote Link to comment https://forums.phpfreaks.com/topic/73512-image-create-default-background-color/ Share on other sites More sharing options...
BlueSkyIS Posted October 16, 2007 Share Posted October 16, 2007 you'll probably need to fill it yourself: imagefill ( resource image, int x, int y, int color ) Quote Link to comment https://forums.phpfreaks.com/topic/73512-image-create-default-background-color/#findComment-370847 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.