Thread: Graphics

Graphics

From
Marcelo Pereira
Date:
Hello All,

Has anybody here whose know how to produce graphics using PHP??

I am trying to use JpGraph, but without success because I am in troubles
while installing this software (i.e., after installed, JpScript ask for GD
2.x, but at the Official Site of GD, the last stable release is 1.8.4, and
the 2.x is beta...) I have lost two days to configure it... what a loss of
time...

I would like to produce dinamic graphics, do you have any idea to give to
me???

Thanks in advance,

Marcelo Pereira


Re: Graphics

From
jeff fitzmyers
Date:
> I would like to produce dinamic graphics, do you have any idea to give
> to
> me???

I just use php's graphics functions for drawing charts.
http://www.php.net/manual/en/ref.image.php
I create the image, save it to disk and call it with a standard html
<img src="xxxxx">. Works great!

Jeff


Re: Graphics

From
Marcelo Pereira
Date:
Hi Jeff,

This kind of graphics I already know php is able to create.

What I want is to create `estatistic graphics':  Bar Graphic, Line
Graphic, Pie Graphics..., this kind of graphic...

Do you have any idea?

See ya,

Marcelo Pereira

-- Remember that only God and Esc+:w saves.
        __
       (_.\           Marcelo Pereira       |
        / / ___                             |
       / (_/ _ \__    Matematica/99 - IMECC |
_______\____/_\___)___Unicamp_______________/

--- jeff fitzmyers, with his fast fingers, wrote:

:> > I would like to produce dinamic graphics, do you have any idea to give
:> > to
:> > me???
:>
:> I just use php's graphics functions for drawing charts.
:> http://www.php.net/manual/en/ref.image.php
:> I create the image, save it to disk and call it with a standard html
:> <img src="xxxxx">. Works great!
:>
:> Jeff
:>


Re: Graphics

From
Gurudutt
Date:
Hello Marcelo,

Try VH Graph available for both commercial and non-commercial
purposes, I find it really useful.

http://www.vhconsultants.com/

--
Best regards,
 Gurudutt                            mailto:guru@indvalley.com

Life is not fair - get used to it.
Bill Gates

Thursday, March 14, 2002, 10:29:35 PM, you wrote:

MP> Hello All,

MP> Has anybody here whose know how to produce graphics using PHP??

MP> I am trying to use JpGraph, but without success because I am in troubles
MP> while installing this software (i.e., after installed, JpScript ask for GD
MP> 2.x, but at the Official Site of GD, the last stable release is 1.8.4, and
MP> the 2.x is beta...) I have lost two days to configure it... what a loss of
MP> time...

MP> I would like to produce dinamic graphics, do you have any idea to give to
MP> me???

MP> Thanks in advance,

MP> Marcelo Pereira


MP> ---------------------------(end of broadcast)---------------------------
MP> TIP 5: Have you checked our extensive FAQ?

MP> http://www.postgresql.org/users-lounge/docs/faq.html


Re: Graphics

From
"Papp, Gyozo"
Date:
AFAIK, the latest version of JpGraph does work with gd 1.8.4, and
supporting gd2.0.x beta is considered experimental only.
Using gd2.0 could be reasonable and a simply a good choice, though
it is still beta. (and it works for me)

BTW, check the php-general mail archive for some post from Rasmus,
who showed some changes in the gd distribution to make gd work
with PHP.

Here comes one of these posts:

> Has anyone got PHP successfully compiled and using GD 2.0.1?
>
> If so what was your configure line please and any other changes you had to
> make in order to get PHP to compile. Thanks.

Build gd-2.0.1 with these two lines in your GD2 Makefile:

CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE
LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm

Don't install the lib anywhere, just leave them in the gd-2.0.1 directory.

Then build PHP using:

--with-gd=/home/<your_dir>/gd-2.0.1
--with-freetype-dir=/usr
--enable-gd-native-ttf   (note there was a typo in 4.0.6 on this one)
                          use: --enable-gd-native-tt  if you are using 4.0.6
--enable-gd-imgstrttf
--with-jpeg-dir=/usr
--with-png-dir=/usr
--with-xpm-dir=/usr/X11R6

This assumes that you have freetype2 installed along with the libjpeg and
libpng libs under /usr

-Rasmus




----- Original Message -----
From: "Marcelo Pereira" <gandalf@sum.desktop.com.br>
To: <pgsql-php@postgresql.org>
Sent: Thursday, March 14, 2002 5:59 PM
Subject: [PHP] Graphics


| Hello All,
|
| Has anybody here whose know how to produce graphics using PHP??
|
| I am trying to use JpGraph, but without success because I am in troubles
| while installing this software (i.e., after installed, JpScript ask for GD
| 2.x, but at the Official Site of GD, the last stable release is 1.8.4, and
| the 2.x is beta...) I have lost two days to configure it... what a loss of
| time...
|
| I would like to produce dinamic graphics, do you have any idea to give to
| me???
|
| Thanks in advance,
|
| Marcelo Pereira
|
|
| ---------------------------(end of broadcast)---------------------------
| TIP 5: Have you checked our extensive FAQ?
|
| http://www.postgresql.org/users-lounge/docs/faq.html


Re: Graphics

From
Marcelo Pereira
Date:
The biggest problem is:

I have downloaded GD-2.0.1, I have compiled PHP --with-gd=<dir>/GD-2.0.1,
but phpinfo() tells me that GD is enable, but version `1.6.2 (or
higher)'. I have done almost everything, but I can't get GD-2.0.1 running,
even with the right tarballs...

Are you running GD-2.0.1?? Do you have the tarball?? Could you send it to
me??

Thanks in advance!

Marcelo Pereira

-- Remember that only God and Esc+:w saves.
        __
       (_.\           Marcelo Pereira       |
        / / ___                             |
       / (_/ _ \__    Matematica/99 - IMECC |
_______\____/_\___)___Unicamp_______________/

--- Papp, Gyozo, with his fast fingers, wrote:

:> AFAIK, the latest version of JpGraph does work with gd 1.8.4, and
:> supporting gd2.0.x beta is considered experimental only.
:> Using gd2.0 could be reasonable and a simply a good choice, though
:> it is still beta. (and it works for me)
:>
:> BTW, check the php-general mail archive for some post from Rasmus,
:> who showed some changes in the gd distribution to make gd work
:> with PHP.
:>
:> Here comes one of these posts:
:>
:> > Has anyone got PHP successfully compiled and using GD 2.0.1?
:> >
:> > If so what was your configure line please and any other changes you had to
:> > make in order to get PHP to compile. Thanks.
:>
:> Build gd-2.0.1 with these two lines in your GD2 Makefile:
:>
:> CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE
:> LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm
:>
:> Don't install the lib anywhere, just leave them in the gd-2.0.1 directory.
:>
:> Then build PHP using:
:>
:> --with-gd=/home/<your_dir>/gd-2.0.1
:> --with-freetype-dir=/usr
:> --enable-gd-native-ttf   (note there was a typo in 4.0.6 on this one)
:>                           use: --enable-gd-native-tt  if you are using 4.0.6
:> --enable-gd-imgstrttf
:> --with-jpeg-dir=/usr
:> --with-png-dir=/usr
:> --with-xpm-dir=/usr/X11R6
:>
:> This assumes that you have freetype2 installed along with the libjpeg and
:> libpng libs under /usr
:>
:> -Rasmus
:>
:>
:>
:>
:> ----- Original Message -----
:> From: "Marcelo Pereira" <gandalf@sum.desktop.com.br>
:> To: <pgsql-php@postgresql.org>
:> Sent: Thursday, March 14, 2002 5:59 PM
:> Subject: [PHP] Graphics
:>
:>
:> | Hello All,
:> |
:> | Has anybody here whose know how to produce graphics using PHP??
:> |
:> | I am trying to use JpGraph, but without success because I am in troubles
:> | while installing this software (i.e., after installed, JpScript ask for GD
:> | 2.x, but at the Official Site of GD, the last stable release is 1.8.4, and
:> | the 2.x is beta...) I have lost two days to configure it... what a loss of
:> | time...
:> |
:> | I would like to produce dinamic graphics, do you have any idea to give to
:> | me???
:> |
:> | Thanks in advance,
:> |
:> | Marcelo Pereira
:> |
:> |
:> | ---------------------------(end of broadcast)---------------------------
:> | TIP 5: Have you checked our extensive FAQ?
:> |
:> | http://www.postgresql.org/users-lounge/docs/faq.html
:>
:>
:> ---------------------------(end of broadcast)---------------------------
:> TIP 4: Don't 'kill -9' the postmaster
:>