PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 53%Total: 641 All time: 4,984 This week: 80Up
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: 52
All time rank: 9691 in South Korea South Korea
Week rank: 227 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 (2)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:641
This week:0
All time:4,984
This week:80Up
User Ratings User Comments (2)
 All time
Utility:81%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:50%StarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2276
 
Good effort but very basic level application
9 years ago (Adeel)
42%StarStarStar
thank you
9 years ago (hussien)
60%StarStarStarStar