PHP Classes

File: ex_image.php

Recommend this page to a friend!
  Classes of Danny Tucker   EZ Framework   ex_image.php   Download  
File: ex_image.php
Role: Example script
Content type: text/plain
Description: Example
Class: EZ Framework
Framework providing several types of functionality
Author: By
Last change:
Date: 17 years ago
Size: 1,253 bytes


Class file image Download
# Version 1.0

$email = new image_handle();

# This class requires the GD library
# Note:
# GIF support was removed from the GD library in Version 1.6,
# and added back in Version 2.0.28. This function is not available between these versions.

// Thumbnails
//image path, save path, max size (counts for width or height whatever hits first), quality

    //Watermark arguments listed below this line
    #1. Original img source
    #2. Source for image to be created to
    #3. the watermark to use
    #4. image output quality 100 = BEST, 0 = WORST
    #5. Watermark size relative to the original image
    # Example:
    # 1 = Watermark image goes from edge to edge - edge padding
    # .75 = Watermark is 75% across image
    # .33 = Watermark is 33% across image
    #6. Vertical Position of watermark
    # (top,center,bottom)
    #7. Horizontal Position of watermark
    # (left, center, right)
    #8. Edge Padding if watermark to image ratio is 1 or greater
    #9. Save image as when done (jpeg or png) only