471,090 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,090 software developers and data experts.

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
Jul 17 '05 #1
1 2449
Simone Winkler wrote:
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.)
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(250, 100) or die("Cannot Initialize new GD image
stream");
$background_color = imagecolorallocate($im, 100, 100, 100);
$text_color = imagecolorallocate($im, 0, 255, 255);
imagestring($im, 10, 5, 5, "GD is working, Simone!", $text_color);
imagepng($im);
imagedestroy($im);
?>

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.


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...).
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

Thank you for your reply!

Simone


Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by matt | last post: by
4 posts views Thread by Jan Schmidt | last post: by
761 posts views Thread by Neo-LISPer | last post: by
2 posts views Thread by Martin Brunner | last post: by
2 posts views Thread by Lyn | last post: by
6 posts views Thread by VB Programmer | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.