This function actually sets the width and height of the image (in pixels).
Took me forever to figure this out.
Imagick::setImageExtent
(PECL imagick 2.0.0)
Imagick::setImageExtent — Sets the image size
Descrizione
bool Imagick::setImageExtent
( int
$columns
, int $rows
)Sets the image size (i.e. columns & rows).
Elenco dei parametri
-
columns -
-
rows -
Valori restituiti
Restituisce TRUE in caso di successo.
Errori/Eccezioni
Lancia una ImagickException in caso di errore.
tim at komta dot com ¶
3 years ago
