This function will brand an image with some text. You can give it a filename or an image resource. You can use built-in gd fonts or, with some modification, TrueType fonts if GD on the server supports it. Usage when giving the function a filename: brand_image('/path/to/file','text',font); The font is the built-in GDfont number. This number can be from 1 to 4. See also the PHP function imageloadfont()..
This uses the GD library to create a thumbnail out of an image. $infile = path to source image $outfile = file and path to write the thumbnail to $maxw = Maximum width of the thumbnail $maxh = Maximum height of the thumbnail $stretch = Stretch image if it is smaller than the maxw and maxh The function will preserve the aspect ratio of the image. If you specify 0 for either $maxw or $maxh then the function..