gd

Image Resize, Crop, Thumbnail, Watermark PHP Script

August 3, 2010

We’re going to write a function called image_handler in PHP. We’ll provide parameters to specify the image width, height, whether or not to watermark the image, and the source of the watermark, when the function is called. We’ll supply a few default values for these parameters as well. <?php function image_handler($source_image,$destination,$tn_w = 100,$tn_h = 100,$quality [...]

Read the full article →