<?php
try
{
/*** set the image name ***/
$img = 'test.jpg';
/*** read the image into imagick ***/
$Imagick = new Imagick($img);
/*** crop and thumbnail the image ***/
$Imagick->cropThumbnailImage(16,16);
/*** set the format to ico ***/
$Imagick->setFormat('ico');
/*** write the favicon.ico file ***/
$Imagick->writeImage("favicon.ico");
echo 'done';
}
catch(Exception $e)
{
echo $e->getMessage();
}
?>
Title:
Create Favicon With Imagick
Description:
<?php try { /*** set the image name ***/ $img = 'test.jpg'; /*** read the image into imagick ***/...
...
Rating:
4