Re: Why isn't the program working?
| From: | Aziz Saleh | Date: | Sun, 08 Feb 2015 02:53:06 +0000 |
| Subject: | Re: Why isn't the program working? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324419@lists.php.net to get a copy of this message | ||
On Sat, Feb 7, 2015 at 9:42 PM, Abdul Abdul <abdul.sw84@gmail.com> wrote:
> Hello,
>
> I'm trying to use WideImage:
> http://wideimage.sourceforge.net/examples/basic/
>
> I have written the following script:
>
> <?php
> include "wideimage-11.02.19-full/lib/WideImage.php";
> $image = WideImage::load("image.jpeg");
> $resized = $image->resize(500, 500);
> $resized->saveToFile("new_image.jpg");
> ?>
>
> When I run the following address on the browser:
> http://localhost/image_manipulation.php
>
> I always get the following output only displayed:
>
> wideimage-11.02.19-full/lib/WideImage.php
>
> Where I'm expecting to see "new_image.jpg", but, doesn't exist.
>
> What would be the issue here?
>
> Provided that I'm running this on an Ubuntu machine, and the files are in
> /var/www/html
>
> I didn't enable the GD extension which the tool requires, would that be the
> issue?
>
> Thanks.
>
"I didn't enable the GD extension which the tool requires, would that be
the issue?"
:)