Login   Register  
PHP Classes
elePHPant
Icontem

File: img.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Vasyl Rusanovskyy  >  Image resize  >  img.php  >  Download  
File: img.php
Role: Example script
Content type: text/plain
Description: show image
Class: Image resize
Resize, crop and add watermark to images
Author: By
Last change:
Date: 4 years ago
Size: 1,033 bytes
 

Contents

Class file image Download
<?php 
##============================================================================##
##                       -=* Vasyl Rusanovskyy *=-        02.04.2010          ##
##                         rusanovskyy@gmail.com                              ##
##                            Capital-Media                                   ##
##                          www.k-media.com.ua                                ##
##                        office@k-media.com.ua                               ##
##============================================================================##

include "image.class.php";

$image = new thumbnail($file_img);
 
//$image->size_width($size);   //Фіксована ширина
//$image->size_height($size);  //Фіксована висота
//$image->size_auto($size);   //Фіксована ширина або висота
$image->size_crop($size);    //Одинакові ширина та висота
//$image->size_width_height($size,$size_h); //Довільна ширина та висота
$image->add_logo("img/logo.png"); //Додати лого до картинки 
//$image->show();

?>