Class WsImage
WsImage Provides simple interface for working with images using GD library.
Example usage:
$img = new WsImage() // load image from file $img->read('public/img/webiness_white.png'); // add wattermark to image $img->addWatermark('copyright (c) me@myaddress.com'); // show image thumbnail $img->showThumbnail(); // show image $img->show();
Located at WsImage.class.php
public
|
|
public
booleane
|
|
public
|
|
public
|
#
showThumbnail( integer $width = 100, integer $height = 100, string $text = '' )
Show image thumbnail |
public
|
#
addWatermark( string $text, integer $x = 8, integer $y = 8 , string $font = null, integer $size = 11 )
Add watermark text to image |
public
integer
|
|
public
integer
|