RE: GD problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK, so that works. So is gd (or one of the required programs) wonky then - I
mean 4 out of 5 scripts I downloaded didn't work. I can't see all of these
people being bad programmers.., but the funny thing is they all work on
Windows. So that can't be it - is there still something I'm missing in Linux
that is required by these scripts? This is what I've been fighting with the
last two weeks.

Thanks for all the help.

-----Original Message-----
From: Chris [mailto:dmagick@xxxxxxxxx] 
Sent: June 23, 2006 2:20 AM
To: Beauford
Cc: php-general@xxxxxxxxxxxxx
Subject: Re:  GD problems

Beauford wrote:
> Since I know nothing of how this works, does this actually create a 
> physical image, and if it does I'm assuming it would be in the 
> originating directory from where the script was run  - if this is the
case, I got nothing.
> 
> This is a moot point now as I have done what I need without using gd, 
> but it would be nice to find out what the problem is.
> 
> Thanks.
> 
>> Anyone know of a way I can test this further. A small script perhaps.
> 
> <?php
>   $image = imagecreatetruecolor(50, 50);
>   imagefilledrectangle($image, 0, 0, 50, 50, 0xffffff);
>   imagejpeg($image);
> ?>

It creates it in memory and it's a 50 x 50 white square.

Change the 0xffffff to 0xFF6600 and it should be a red square.

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux