PHP Classes

PHP Image Thumbail and Watermark: Create thumbnail images or with watermarks

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 54%Total: 640 This week: 1All time: 4,988 This week: 560Up
Version License PHP version Categories
watermark-thumb 0.3GNU General Publi...5.3PHP 5, Graphics
Description 

Author

This class can create thumbnail images or with watermarks.

It can open images in the formats GIF, JPEG, PNG, BMP or WBMP.

The class can create thumbnails of the original image with a given size, add watermark text or image, crop the image to given dimensions and convert format.

Picture of YoungHyeong Ryu
  Performance   Level  
Name: YoungHyeong Ryu <contact>
Classes: 3 packages by
Country: South Korea South Korea
Age: 51
All time rank: 9701 in South Korea South Korea
Week rank: 411 Up1 in South Korea South Korea Equal
Innovation award
Innovation award
Nominee: 1x

Recommendations

Example

<?php
header
("Content-Type: text/html; charset=utf-8");
error_reporting(E_ALL ^ E_NOTICE);
ini_set('display_errors', On);


include_once
'class.image.php';
$image = new Class_image();


// if you want to create wortermark with text

//$params = array("src"=>"source/image/path/filename", "text"=>"what you want write on image","savepath"=>"save/image/path/filename");
//$params = array("src"=>"./samples/sample.jpg", "text"=>"shop-wiz.com", "savepath"=>"./samples/textwater.jpg");
//$image->impressWaterMark($params) ;


// if you want to create wortermark with image
//$params = array ("src"=>"source/image/path/filename","logo"=>"source/image/path/filename", "savepath"=>"save/image/path/filename", "quality"=>"9");
//$params = array ("src"=>"./samples/sample.jpg","logo"=>"./samples/logo.gif", "savepath"=>"./samples/imagewater.jpg", "quality"=>"9");
//$image->imageWaterMaking($params);


// if you want to create thumbnail
//$param = array("sourcefile"=>"/path/filename", "savepath"=>"./path", "max_width"=>"max value of thumbnail'width", "max_height"=>"max value of thumbnail'height");
//$param = array("sourcefile"=>"./samples/sample.jpg", "savepath"=>"./samples/thumbnail.jpg", "max_width"=>"300", "max_height"=>"300");
//$image->thumbnail($param);


// if you want to crop image
//$params = array("width"=>"crop width", "height"=>"coop height", "sourcefile"=>"source filepath/filenmae", "desc"=>"desc filepath/filenmae", "resize"=>true, "resize_w"=>"", "resize_h"=>"");
//$params = array("width"=>"100", "height"=>"100", "sourcefile"=>"./samples/sample.jpg", "desc"=>"./samples/crop.jpg");
//$image->cropcenter($params);

// if you want to convert an image format to
//$params = array("type" => "format chaning to(gif, jpeg)", "src"=>"path/from/sourcefile", "desc"=>"path/to/desc file");
//$params = array("type" => "png", "src"=>"./samples/sample.jpg", "desc"=>"./samples/sample.png");
//$image->convertformat($params);


  Files folder image Files  
File Role Description
Plain text file class.image.php Class This Image Class Form WaterMark(Text or Image) and ThumbNail Image (various Postion)
Accessible without login Plain text file index.php Example How to use

 Version Control Unique User Downloads Download Rankings  
 0%
Total:640
This week:1
All time:4,988
This week:560Up
User Ratings User Comments (2)
 All time
Utility:91%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:54%StarStarStar
Rank:2100
 
Good effort but very basic level application
9 years ago (Adeel)
42%StarStarStar
thank you
9 years ago (hussien)
60%StarStarStarStar