Yesideez Posted August 14, 2006 Share Posted August 14, 2006 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! Link to comment https://forums.phpfreaks.com/topic/17530-graphics-extension-library/ Share on other sites More sharing options...
zq29 Posted August 14, 2006 Share Posted August 14, 2006 It's called the GD Library, and I think you can check if it is installed by running the gd_info() function. Link to comment https://forums.phpfreaks.com/topic/17530-graphics-extension-library/#findComment-74642 Share on other sites More sharing options...
Chetan Posted August 14, 2006 Share Posted August 14, 2006 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 Link to comment https://forums.phpfreaks.com/topic/17530-graphics-extension-library/#findComment-74646 Share on other sites More sharing options...
Yesideez Posted August 14, 2006 Author Share Posted August 14, 2006 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. Link to comment https://forums.phpfreaks.com/topic/17530-graphics-extension-library/#findComment-74654 Share on other sites More sharing options...
Chetan Posted August 14, 2006 Share Posted August 14, 2006 You have excess to php.ini? Link to comment https://forums.phpfreaks.com/topic/17530-graphics-extension-library/#findComment-74664 Share on other sites More sharing options...
Yesideez Posted August 14, 2006 Author Share Posted August 14, 2006 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) } Link to comment https://forums.phpfreaks.com/topic/17530-graphics-extension-library/#findComment-74667 Share on other sites More sharing options...
Chetan Posted August 14, 2006 Share Posted August 14, 2006 I think thats a true, better you try some code Link to comment https://forums.phpfreaks.com/topic/17530-graphics-extension-library/#findComment-74690 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.