Re: Why doesn't PHP have built-in support for dynamic image generation?
| From: | Andy | Date: | Sun, 03 Feb 2002 21:07:12 +0000 |
| Subject: | Re: Why doesn't PHP have built-in support for dynamic image generation? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-83330@lists.php.net to get a copy of this message | ||
Hi guys,
I think his original question was how to install GD!!!!!
It's not a big deal!
- Install PHP > 4.06
- edit the php.ini -> delete the comment tags from the gd import module
- restart your server if it is running not as a CGI extension
Thats it!!!
For gd2 support take care in PHP4.1.1 there are 2 gdmodules gd1 and gd2
Hope this helps,
Andy
"Christian Stocker" <chregu@php.net> schrieb im Newsbeitrag
news:pan.2002.02.03.21.35.57.796679.17882@php.net...
> In <3C5D9A4C.1060401@tapinternet.com>, Michael Kimsal wrote:
>
>
>
> >>>Someone seems to have started this, although I'm not sure why he's not
> >>>going more object-based.
> >>>
> >>>
> >>>http://pear.php.net/manual/en/packages.imagick.php
> >>>
> >>>I would prefer something like
> >>>
> >>>$i = new Imagick();
> >>>$i->read("file");
> >>>
> >>>instead of
> >>>$i= imagick_create();
> >>>imagick_read($i,"file");
> >>>
> >>>
> >> it's open source. just do it more object orientated ... and i'm sure
> >> the author (me...) will be very happy to impelement it ;)
> >>
> >> honestly, OO-Interface was and still is planned, but i think more
> >> functionality is much more needed at the moment than an oo interface.
> >> it was my first extension, so i wanted to keep it simple for the
> >> beginning.
> >>
> >> but if someone else likes to implement it earlier, i'm the last, who
> >> has a problem with that (and don't expect 00 soon from me ...)
> >>
> >> chregu
> >>
> >>
> >>
> > Hello -
> >
> > Please don't take my comment the wrong way - I know what I'd *like* to
>
> no, didn't take it the wrong way. maybe my answer was a bit to harsh ;)
>
> > see (which is how I labelled it above) and what I'm capable of actually
> > contributing.
> > Doing C-code PHP extensions is beyond my capabilities, so I make do with
> > what others contribute. Simply because something is opensource doesn't
> > mean everyone has equal talent to add in actual code. :(
> > I thank you for your contribution of this code so far, and should you
> > continue to work on it in whatever fashion you choose, so much the
> > better. It is appreciated, OO or not (it would just be appreciated more
> > if it was OO.) :)
>
> i would it appreciate as well, if it was OO. I was just not capable back
> then to do it OO, maybe i am the next time I invest more time in it.
>
> christian
"Erica Douglass" <corky6921@yahoo.com> schrieb im Newsbeitrag
news:20020203072258.14438.qmail@pb1.pair.com...
> Forgive my grumpiness, but I've spent the last several hours trying to
> install GD, etc.
>
> Let's be honest. PHP needs built-in support for creating dynamic images.
JSP
> already has this. Heck, you could even make it a configure option. As it
> stands now, you have to do the following:
>
> -- Install GD
> -- Install all of GD's numerous dependencies
> -- Install zlib
> -- Install freetype
> -- Install libttf
>
> THEN you have to compile PHP with all of the requisite options to enable
GD
> here and Freetype there, and PHP often won't compile without specifying
> /path/to/various/options, so you have to dig around your system to find
out
> where everything was installed. This results in a long and unwieldy
> configure statement which often does not work.
>
> PHP needs to have a simple configure option called --enable-dynamic-images
> or something similar. This should use built-in libraries that are
downloaded
> with the PHP source to create PNG images. Images can then be created with
> standard PHP functions. This would be much more useful than relying on
> several third-party solutions which do not easily work with each other.
This
> would also have the benefit of being more portable -- as I plan to release
> my code to several different people running different types of servers, I
> would like to minimize compatibility issues.
>
> If anyone has a better solution, feel free to email me. As it stands, I am
> very frustrated with this, and I haven't yet seen the light at the end of
> the tunnel.
>
> Thanks,
> Erica
>
>