gerkintrigg Posted June 28, 2006 Share Posted June 28, 2006 I'm trying to work out how to resize my image.I have the following code, which writes my copyright notice across the image (this is for an image bank) but I'd also like to add a watermarked logo to the image aswell as resize the final image.I tried everything I can think of but the only working version I have (which doesn't do everything I'd like) is this:[code]<?php // Set dimension of image$Height = 200;$Width= 300;// Now make it$im = ImageCreateFromGif($root.$img_details['url']);$White = ImageColorAllocate ($im, 100, 100, 100);$Blue = ImageColorAllocate ($im, 0, 0, 64);// Resize it://$im = ImageCopyResized($Width,$Height);// draw on imageImageFill ($im, 0, 0, $blue);ImageLine ($im, 0, 0, $Width, $Height, $White);ImageString($im, 11, 2, 5, 'Copyright Protected', $White);ImageString($im, 11, 2, 25, 'By Next Day Graphics', $White);ImageString($im, 11, 2, 45, 'Sample Only', $White);// output imageImagePng ($im);// clean upImageDestroy($im);?>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/13131-image-manipulation-using-the-gd-library/ Share on other sites More sharing options...
gerkintrigg Posted June 29, 2006 Author Share Posted June 29, 2006 Wow, How about just the resize option...? anyone?Please, help...Please? Quote Link to comment https://forums.phpfreaks.com/topic/13131-image-manipulation-using-the-gd-library/#findComment-50817 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.