picture gallery

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Simone Winkler

    picture gallery

    Hello,

    I don't know if my question is out of topic...so I apologize if I am.

    I use the coppermine picture gallery for my web (actually I want to use it
    but the server doesn't seem to have GD running but I will beg them to
    activate it). How can I actually find out if GD is installed? I tried to use
    phpinfo() and I searched for a GD entry, but no one was there, so can I be
    sure, that GD isn't installed? (Because the admins of the webhosting told me
    that it IS installed.)

    But the actual question is:
    I've got an old web gallery with descriptions of the pictures. I'd now like
    to transform this into the new gallery - I don't mind uploading the pictures
    again, but I am really horrified by the idea of entering all that
    description text again for all those pictures. So I was asking myself, if it
    was possible to take the descriptions somehow out of all those html-files
    and insert them automatically as comments (the coppermine gallery is able to
    receive comments to the pictures) to the coppermine picture gallery. Do you
    know if there's a way to do this or is it just impossible? The text could,
    instead of as a comment, also just be added as text below the picture (I'd
    even prefer this solution).

    The original html-files are just very simple (some thumbnails, then the
    picture, below the text...).

    Thank you for your reply!

    Simone


  • Erwin Moller

    #2
    Re: picture gallery

    Simone Winkler wrote:
    [color=blue]
    > Hello,
    >
    > I don't know if my question is out of topic...so I apologize if I am.
    >
    > I use the coppermine picture gallery for my web (actually I want to use it
    > but the server doesn't seem to have GD running but I will beg them to
    > activate it). How can I actually find out if GD is installed? I tried to
    > use phpinfo() and I searched for a GD entry, but no one was there, so can
    > I be sure, that GD isn't installed? (Because the admins of the webhosting
    > told me that it IS installed.)[/color]

    Maybe it is installed, but PHP is not compiled against it.
    if you use phpinfo() you SHOULD see it.

    Check the 'Configure Command' part and see if GD is in there.
    As far as I know it should also appear in the list that follows under GD.

    make a script, callit testgd.php, and put this into it:

    <?php
    header("Content-type: image/png");
    $im = @imagecreate(25 0, 100) or die("Cannot Initialize new GD image
    stream");
    $background_col or = imagecoloralloc ate($im, 100, 100, 100);
    $text_color = imagecoloralloc ate($im, 0, 255, 255);
    imagestring($im , 10, 5, 5, "GD is working, Simone!", $text_color);
    imagepng($im);
    imagedestroy($i m);
    ?>

    Call it.
    It should return an image (png)

    If that doesn't work, ask your provider for an explaination.
    If the provider keeps saying it is working, switch provider.

    [color=blue]
    >
    > But the actual question is:
    > I've got an old web gallery with descriptions of the pictures. I'd now
    > like to transform this into the new gallery - I don't mind uploading the
    > pictures again, but I am really horrified by the idea of entering all that
    > description text again for all those pictures. So I was asking myself, if
    > it was possible to take the descriptions somehow out of all those
    > html-files and insert them automatically as comments (the coppermine
    > gallery is able to receive comments to the pictures) to the coppermine
    > picture gallery. Do you know if there's a way to do this or is it just
    > impossible? The text could, instead of as a comment, also just be added as
    > text below the picture (I'd even prefer this solution).
    >
    > The original html-files are just very simple (some thumbnails, then the
    > picture, below the text...).[/color]

    What you really need is a simple database.
    I cannot help you with a script to extract all the descriptions out of a
    HTML-page. That might be a bit complicated, but it can be done.

    My advise is: Use a database, it isn't complicated.

    Regards,
    Erwin Moller
    [color=blue]
    >
    > Thank you for your reply!
    >
    > Simone[/color]

    Comment

    Working...