Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php path to gd library

Tags:

path

php

gd

I am trying to use Codeigniter's image manipulation class which of course requires a php image library.

I know I have gd library enabled on my server from running phpinfo();

However, I need to specify the path to the image library in codeigniter, and I don't know where it is installed! The server is under someone else's jurisdiction, so is there any way at all to find out where the gd library is installed without using the command line? It is a linux server.

Thanks.

like image 560
Inigo Avatar asked Sep 20 '25 18:09

Inigo


1 Answers

GD is compiled with PHP, and is used internally, there is no need to supply a path for GD what so ever, on CI's Manual it states:

library_path : Sets the server path to your ImageMagick or NetPBM library. If you use either of those libraries you must supply the path.

Hint: you are not using ImageMagick or NetPBM

If you mean ImageMagick, you can locate the binaries you can try the following command:

locate imagemagick

but they are usually located in /usr/bin or /usr/X11R6/bin/

like image 87
RobertPitt Avatar answered Sep 22 '25 09:09

RobertPitt