RE: [PHP] calling imagemagick from php
| From: | Michal Migurski | Date: | Tue, 29 Jun 2004 15:09:06 +0000 |
| Subject: | RE: [PHP] calling imagemagick from php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-189227@lists.php.net to get a copy of this message | ||
> I have actually changed my code to this for debug purposes
>
> system('convert -geometry 200 x 200 image.JPG theThumb.gif', $retval)
>
> and if I cut out string between the single quotes and just run it at a
> command prompt, it works great....when I run this php script, I get
> syntax errors....what is wrong?
Perhaps convert is not in your path?
Also, I'm not sure that the -geometry argument is going to behave how you
expect - typically, geometry is expressed as "WxH", not "W x H", in
command-line arguments to imagemagick. In the former case, you will set
the size of your output image to W width and H height. In the latter case,
I believe that the 'x H' is ignored, and you implicitly set the size of
your output image to W width and W height. Big difference for any aspect
ratio besides 1:1.
---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca http://mike.teczno.com/contact.html