PDA

View Full Version : problems with GD


Anonymous
05-03-2005, 03:56 AM
well ive installed 3 versions of pixelpost now, I know gd is installed on my server but for some reason this script isnt finding it and therefore thumbnails arent being made. I really love the script if anyone can maybe tell me where the path is located inside the script so that i might edit it please help. I know gd is installed because i went to install it and it told me it already was. I even tried installing a newer version to no avail.
http://ihtgwsm.com/photolog/


any and all help would be greatly appreciated


dranyam

Connie
05-03-2005, 05:52 AM
if you could please give us the information which you find in the admin panel, general info

that's why these informations are there
why must we ask for that all the time again :cry:

there is information about the gd lib and without that info ....

dranyam
05-04-2005, 03:45 AM
Here is the info from the general info tab inside of admin of the script

Oh yeah this is running fbsd 4.10


You are running version 1.4.1 of Pixelpost. Released 24 April 2005.
Latest pixelpost version: Check

Looking for help or want to give feedback, please step into pixelpost forum.
www.pixelpost.org/forum/

Host Information
PHP-version 4.3.10 (Pixelpost's min requirement: PHP version 4.3.0)

MySQL version 4.0.20 (Pixelpost's min requirement: MySQL 3.23.58)

GD-lib

Server software Apache/1.3.33 (Unix) PHP/4.3.10

EXIF Pixelpost is using exifer v1.5 for EXIF information.

Paths
Guessed imagepath: /home/maynard/ihatetheguywhostolemaynard.com/photolog/images/

Configured Imagepath /home/maynard/ihatetheguywhostolemaynard.com/photolog/images/

Image Directory: OK - Can we write to the directory? YES.

Thumbnails Directory: OK - Can we write to the directory? YES.

Language Directory: OK

Addons Directory: OK

Includes Directory: OK

Templates Directory: OK

raminia
05-04-2005, 06:17 AM
I don't have any idea about this but I added this into my watch list.

Connie
05-04-2005, 07:36 AM
I think, if it is really PixelPost 1.4.1, GD is there, but without JPG-support

I checked my installation at http://www.bildgier.de/phptest.php and got the following complete GD-information using the famous php(info)....

gd
GD Support enabled
GD Version bundled (2.0.15 compatible)
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

so please, use this small script and give us the complete GD-Info which you will get as output:

create a file, "phpinfo.php" with the following content:

<?PHP
phpinfo();
?>

load this to your server and run it, call it from the browser

in the output, look for the section gd and give us that information
we will then see clearer...

GeoS
05-04-2005, 01:17 PM
Connie: in the meantime we added JPEG support detection. If GD is with it the text should looks like (i.e.):

GD-lib bundled (2.0.28 compatible) with JPEG support

Connie
05-04-2005, 01:55 PM
I know that

that's why I was astonished to see GD 'standalone' which means, if my logic is thinking, GD is there, but without JPG support

that's why I asked for even more information on GD at the server...

dranyam
05-04-2005, 04:57 PM
Ok.... so now this has freaked me out more than before. I own this server keep that in mind, so I have root. I swear I went to install GD and it tells me its already installed soo i did a make uninstall and make reinstall for a newer version from /usr/ports of course as its fbsd. But I created the phpinfo.php file, and I'm astonished to see in the report of the page that GD is not included in the listings. Mabye I missed it have a look for yourself


http://www.methlab.info/phpinfo.php




any and all help is still appreciated, and thanks for being so helpful already this is one of the nicest communites of developers I think that I've ever had the pleasure to experience.

dranyam
05-04-2005, 05:27 PM
NEVER MIND ALL THAT turns out php had to be recompiled to enable gd support now if i can just figure out how to turn on jpeg support in gd
ill be set




i was just looking through another script Gallery2 and it uses ImageMagick would it be a problem for imagemagick and GD to run at the same time ? im running gallery 2 which requires image magick, I thought i remembered someone telling me once you cannot run them both simutaneously i dunno im confused now i dunno what to do.... but anyhow heres proof that GD is installed

[12:11] <dranyam> ===> Installing for gd-2.0.33_1,1
[12:11] <dranyam> ===> Generating temporary packing list
[12:11] <dranyam> ===> Checking if graphics/gd already installed
[12:11] <dranyam> ===> gd-2.0.33_1,1 is already installed
[12:11] <dranyam> You may wish to ``make deinstall'' and install this port again
[12:11] <dranyam> by ``make reinstall'' to upgrade it properly.
[12:11] <dranyam> If you really wish to overwrite the old port of graphics/gd
[12:11] <dranyam> without deleting it first, set the variable "FORCE_PKG_REGISTER"
[12:11] <dranyam> in your environment or the "make install" command line.
[12:11] <dranyam> *** Error code 1
[12:11] <dranyam> Stop in /usr/ports/graphics/gd.
[12:11] <dranyam> [root@tzao:/usr/ports/graphics/gd]#

raminia
05-04-2005, 06:42 PM
Dear dranyam,

it is clear that you don't have JPG Support enabled in your php. In the GD section of that PHPINFO you should have a row with on the left JPG Support and on the right Enabled but you don't.
this is how it show up for me


GD Support enabled
GD Version bundled (2.0.28 compatible)
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled


look at php.ini (in windows ;) )
you should have
extension=php_mbstring.dll
extension=php_exif.dll
extension=php_gd2.dll

in linux... umm you should look at http://ir.php.net/gd

Installation
To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option --with-gd. GD library requires libpng and libjpeg to compile.

In Windows, you'll include the GD2 DLL php_gd2.dll as an extension in php.ini. The GD1 DLL php_gd.dll was removed in PHP 4.3.2. Also note that the preferred truecolor image functions, such as imagecreatetruecolor(), require GD2.

Note: To enable exif support in Windows, php_mbstring.dll must be loaded prior to php_exif.dll in php.ini.

To disable GD support in PHP 3 add --without-gd to your configure line.

Enhance the capabilities of GD to handle more image formats by specifying the --with-XXXX configure switch to your PHP configure line.

Image Format Configure Switch

jpeg-6b:
To enable support for jpeg-6b add --with-jpeg-dir=DIR.

png:
To enable support for png add --with-png-dir=DIR. Note, libpng requires
the zlib library, therefore add --with-zlib-dir[=DIR] to your configure line.

xpm:
To enable support for xpm add --with-xpm-dir=DIR. If configure is not able to find the required libraries, you may add the path to your X11 libraries.

dranyam
05-04-2005, 07:07 PM
ram

i soon figured that out and now the problem have been solved
thank you guys for all of your help you have been more than generous
now if i can just get images to fit inside the template
ill be oooooo sooo happy

Connie
05-05-2005, 06:28 AM
dranyam,

I am glad that it worked out... nearly most problems can be solved, only the real problems of life stay misterious :o

well, now, the size of images and templates...

which template you want to use?
what size are your images?