Why isn't the program working?
| From: | Abdul Abdul | Date: | Sun, 08 Feb 2015 02:42:27 +0000 |
| Subject: | Why isn't the program working? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-324418@lists.php.net to get a copy of this message | ||
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.