Jump to content

Archived

This topic is now archived and is closed to further replies.

Yesideez

Graphics extension library

Recommended Posts

How can I check if this is installed on the server and if not, where can I get it and install it?

I need to be able to check whether a file is a valid image file (JPEG/GIF) and to possibly check its dimensions and to maybe even resize it.

Come to think of it, I can't remember what the extension is called!

Share this post


Link to post
Share on other sites
It's called the GD Library, and I think you can check if it is installed by running the gd_info() function.

Share this post


Link to post
Share on other sites
or phpinfo which gives info about what is installed and what is not.
or use gd_info() which will work only if there is GD

Share this post


Link to post
Share on other sites
gd_info() doesn't give any output so I presume its not installed.

I've checked the output of phpinfo() and I've no idea what I'm looking for.

How would I install php_gd.dll?

All I have is the usual phpMyAdmin and cPanel with the server.

Share this post


Link to post
Share on other sites
How would I check for that? All I've done in the past is make sites and I've not really got in too deep with anything else?

I noticed at the bottom of phpinfo() it seems I might have it installed as I get this with var_dump(gd_info()):

array(11) { ["GD Version"]=> string(27) "bundled (2.0.28 compatible)" ["FreeType Support"]=> bool(true) ["FreeType Linkage"]=> string(13) "with freetype" ["T1Lib Support"]=> bool(false) ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(true) ["JPG Support"]=> bool(true) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XBM Support"]=> bool(true) ["JIS-mapped Japanese Font Support"]=> bool(false) }

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.