Transforme une ressource GD en image au format ICO
public static GD2ICOstring ( array &$gd_image_array ) : string | ||
$gd_image_array | array | Tableau de ressources d'images GD |
return | string | Image au format ICO |
/** * Crée un fichier-image au format ICO * * Utilise les fonctions de la classe phpthumb_functions. * * @uses phpthumb_functions::GD2ICOstring() * * @param ressource $img * Une ressource de type Image GD. * @param string $fichier * Le path vers l'image (ex : local/cache-vignettes/L180xH51/image.jpg). * @return bool * true si le fichier a bien été créé ; false sinon. */ function _image_imageico($img, $fichier) { $gd_image_array = array($img); return ecrire_fichier($fichier, phpthumb_functions::GD2ICOstring($gd_image_array)); }