Upload file to directory, if name is not empty rename file (no extension needed)
boolean
fileUpload
(string $obj, string $path, [string $new_name = ''])
-
string
$obj
-
string
$path
-
string
$new_name
Transform image to thumbnail file
void
imgThumbnail
(int $width, int $height, [ $constraint = false], [array $background_color = array(0,0,0)], [string $suffix = ''], [string $force_type = ''], boolean $contraint)
-
int
$width: image width
-
int
$height: image height
-
boolean
$contraint
-
array
$background_color: 3 colors RGB
-
string
$suffix: add a suffix in image name
-
string
$force_type: convert original image: jpg, gif, png
-
$constraint
Assign image to thumbnail file
void
imgThumbnailSetOriginal
(string $path)
-
string
$path: path full path with image name