Pictures not showing? Helpfull hints...

I had some trouble with pictures who did not show when loaded in to zenphoto. This turrned out to be a gd library problem. Here are some hints if you have trouble with (some) pictures not showing.
1) Test to see if the picures are uploaded. Normaly pictures are stored in myweb.org/zenphoto/albums/name-of-album/name-off-pic.jpg

2) create a test.php file with some basic html in it and"<?php phpinfo() ?>

3) call this file from your webserver eg:
http://myweb.org/test.php
and look for anything gd related personaly i press ctrl+f en type "gd" then the browser will look it up for me.

4) first you should find something like:
"--with-gd =/usr/local" then further below you should find a bigger block called gd which should look like this:
gd:
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled


5)IF you find only"--with-gd=shared" or nothing at all zenphoto might not work ok. Going to another host or compiling apache/php on your own would be the only solutions left.

Comments

  • trisweb Administrator
    Great write-up for those having GD problems.

    I'm planning on a better setup script that checks for basic requirements like this; that should help make installation a little better.
  • This would be a great addition for the next big release. IF ofcourese you have time to do it. personnally i could not do such thing. But in the future i could help with an documentation projesct or so.
  • Hello to all.
    I'm having the same problem here, but I do not understand why ZenPhoto cannot work ok if PHP was compiled with a separate object for GD.

    My point is that if PHP was compiled with `--with-gd=shared` the only thing needed for GD to be available should be the .so library and a correct initialization of that.

    In my php.ini I do specify the extension (`extension=gd.so`) and it is correctly loaded.

    In fact th GD section in phpinfo() correctly reports all image supports enables and FreeType too.

    Any clues on why this is not working correctly?
Sign In or Register to comment.