Re: Why isn't the program working?
| From: | Abdul Abdul | Date: | Sun, 08 Feb 2015 03:35:10 +0000 |
| Subject: | Re: Why isn't the program working? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324420@lists.php.net to get a copy of this message | ||
I have enabled GD, but having the same issue.
On Sun, Feb 8, 2015 at 3:53 AM, Aziz Saleh <azizsaleh@gmail.com> wrote:
>
>
> 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?"
>
> :)
>