Member Avatar for LastMitch

Hi

I want to know the if GD2 run the same as JQuery?

For example for JQuery you need this:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>

for the code to run.

But for GD2 you need a package but I haven't download it yet.

I just want to know the Pro and Cons between GD2 & JQuery

Thanks

Recommended Answers

All 3 Replies

So it may be me, but what is GD2?

I think he is referring to the PHP graphic library, if so there is no direct relation between JQuery and GD. If you're using a debian based distro then use: sudo apt-get install php5-gd to install the library, but it should be already included in your PHP installation:

Since PHP 4.3 there is a bundled version of the GD lib. This bundled version has some additional features like alpha blending, and should be used in preference to the external library since its codebase is better maintained and more stable.

source: http://www.php.net/manual/en/image.requirements.php

commented: Thanks for explanation! +5
Member Avatar for LastMitch

@cereal

Thanks for the reply and explanation!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.