PHP Classes

File: function.img_filter.php

Recommend this page to a friend!
  Classes of Mike Jordan   PHP Image Filter GD   function.img_filter.php   Download  
File: function.img_filter.php
Role: Auxiliary script
Content type: text/plain
Description: Smarty Plugin Function
Class: PHP Image Filter GD
Apply image effect filters to remote images
Author: By
Last change: Added var for path to image_filter.php
Date: 10 years ago
Size: 558 bytes
 

Contents

Class file image Download
<?php

/**
 * Plugin name: img_filter
 *
 * @package PHP Image Filter GD
 * @version 1.0.1
 * @author MT Jordan <mtjo62@gmail.com>
 * @copyright 2014
 * @license zlib/libpng
 */

function smarty_function_img_filter( $params, &$smarty )
{
   
$img_filter_URL = 'http://mysite.com/path/to/image_filter.php';
    
    return
"<img src=\"{$img_filter_URL}?filename_gd={$params['src']}&filter_gd={$params['filter']}\" alt=\"{$params['src']}\" />";
}

/* EOF function.img_filter.php */
/* Location: ./function.img_filter.php */