Login   Register  
PHP Classes
elePHPant
Icontem

File: ex_image.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2006-03-05 17:11
Size: 1,253 bytes
 

Contents

Class file image Download
<?php
# Version 1.0
require_once('../include/config.inc.php');

$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
$f->thumb('images/p-016-small.jpg','images/p-016-small_t.jpg',250,85)

/**    
    //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
**/    

$f->waterMark('images/p-016-small.jpg','images/p-016-small_w.jpg','images/watermark.png',100)




?>