PHP Class ImageHelper

To change this template file, choose Tools | Templates and open the template in the editor.
Afficher le fichier Open project: yinhe/yincart Class Usage Examples

Méthodes publiques

Méthode Description
thumb ( integer $width, integer $height, string $img, array $options = null ) : string * Create a thumbnail of an image and returns relative path in webroot * the options array is an associative array which can take the values * quality (jpg quality) and method (the method for resizing) * * @param int $width * @param int $height * @param string $img * @param array $options * @return string $path

Method Details

thumb() public static méthode

* Create a thumbnail of an image and returns relative path in webroot * the options array is an associative array which can take the values * quality (jpg quality) and method (the method for resizing) * * @param int $width * @param int $height * @param string $img * @param array $options * @return string $path
public static thumb ( integer $width, integer $height, string $img, array $options = null ) : string
$width integer
$height integer
$img string
$options array
Résultat string