\Pluf_Image

Image object to wrap some simple convertion operations.

Complex operations should be performed with the gd functions directly.

Summary

Methods
Properties
Constants
__construct()
asPng()
saveAs()
$source
No constants found
No protected methods found
$dir
$filename
N/A
No private methods found
No private properties found
N/A

Properties

$source

$source : 

< Filename of the last created thumbnail.

Type

$dir

$dir : 

Type

$filename

$filename : 

< Path to the thumbnail folder.

Type

Methods

__construct()

__construct(  $source) 

Init the image class.

Parameters

$source

asPng()

asPng(  $output) 

Convert the image as a png file.

Parameters

$output

saveAs()

saveAs(  $output,   $type = 'png') 

Convert the image as a given type.

Types are 'gif', 'jpg' or 'png'

Parameters

$output
$type