Jump to content


Photo

Graphics extension library


  • Please log in to reply
6 replies to this topic

#1 Yesideez

Yesideez
  • Members
  • PipPipPip
  • Advanced Member
  • 2,334 posts
  • LocationDevon, UK

Posted 14 August 2006 - 05:15 PM

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!
Not a pro just an enthusiast :)

if (empty($coffee)) {$coffee=new coffee();}

Please surround any code using the CODE tags - I rarely look at anything without them

#2 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 14 August 2006 - 05:19 PM

It's called the GD Library, and I think you can check if it is installed by running the gd_info() function.

#3 Chetan

Chetan
  • Members
  • PipPipPip
  • Advanced Member
  • 162 posts
  • LocationIndia

Posted 14 August 2006 - 05:22 PM

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
I am a PHP Guru, ask me questions if you want to

#4 Yesideez

Yesideez
  • Members
  • PipPipPip
  • Advanced Member
  • 2,334 posts
  • LocationDevon, UK

Posted 14 August 2006 - 05:31 PM

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.
Not a pro just an enthusiast :)

if (empty($coffee)) {$coffee=new coffee();}

Please surround any code using the CODE tags - I rarely look at anything without them

#5 Chetan

Chetan
  • Members
  • PipPipPip
  • Advanced Member
  • 162 posts
  • LocationIndia

Posted 14 August 2006 - 05:44 PM

You have excess to php.ini?
I am a PHP Guru, ask me questions if you want to

#6 Yesideez

Yesideez
  • Members
  • PipPipPip
  • Advanced Member
  • 2,334 posts
  • LocationDevon, UK

Posted 14 August 2006 - 05:47 PM

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) }
Not a pro just an enthusiast :)

if (empty($coffee)) {$coffee=new coffee();}

Please surround any code using the CODE tags - I rarely look at anything without them

#7 Chetan

Chetan
  • Members
  • PipPipPip
  • Advanced Member
  • 162 posts
  • LocationIndia

Posted 14 August 2006 - 06:35 PM

I think thats a true, better you try some code
I am a PHP Guru, ask me questions if you want to




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users