Re: Script to generate a site thumbnails
| From: | Nick Stinemates | Date: | Sun, 21 Jan 2007 14:29:00 +0000 |
| Subject: | Re: Script to generate a site thumbnails | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-247520@lists.php.net to get a copy of this message | ||
An example:
<?php
$imageMagick = "convert"; //name of the application using to convert the files
$opts = "-thumbnail 800x600 ";
$fileName = "my.jpg";
exec("$imageMagick $opts $fileName thumb.$fileName");
?>
Hope it helps!
--
==================
Nick Stinemates (nick@stinemates.org)
http://nick.stinemates.org
AIM: Nick Stinemates
MSN: nickstinemates@hotmail.com
Yahoo: nickstinemates@yahoo.com
==================