Scales an image to fit a particular size (such as 'thumb' or 'medium'). The URL might be the original image, or it might be a resized version. This
$id, $size = 'medium'
Sortie :
@param int $id Attachment ID for image.
@param string|int[] $size Optional. Image size. Accepts any registered image size name, or an array
@return array|false {
// Utilisation de la fonction image_downsize
$result = image_downsize($id, $size = 'medium');
if ($result) {
// Votre logique ici
}
Chargement des actualités...