473,372 Members | 860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 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 2563
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: matt | last post by:
I have compiled some code, some written by me, some compiled from various sources online, and basically i've got a very simple flat file photo gallery. An upload form, to upload the photos and give...
4
by: Jan Schmidt | last post by:
Hi NG, i created my own Picture Gallery, which reads the EXIF Data of each Picture before displaying on website. I'd like to give my users the ability to alter some opened EXIF Values. It would...
761
by: Neo-LISPer | last post by:
Hey Recently, I researched using C++ for game programming and here is what I found: C++ game developers spend a lot of their time debugging corrupted memory. Few, if any, compilers offer...
2
by: Martin Brunner | last post by:
Hello! I tested several picture galleries now but I didn't find anyone I like. It should be very simple (just login and upload) but it should be able to rezise pictures. You specify a value...
2
by: Lyn | last post by:
What is the best way to import a picture (bmp format) via VBA from a Windows file and embed it into a Bound Object Frame (and thence to an OLE Object in a table)? I found an MS knowledge base...
6
by: VB Programmer | last post by:
I am creating an online, interactive, art gallery using ASP.NET. I want the user to be able to select (1) a frame type & size, (2) a matte type & color and (3) a picture. I will then display...
13
by: Jim Carlock | last post by:
I have over a hundred pictures I would like to present. Is it practical to create and parse an array of pictures, picture paths, et al using server-side scripting to accomplish this? I...
1
by: rakuntal | last post by:
hi friends can u tell me how to create a picture gallery in asp,net 2.0 in c#? thankyou
1
by: chadmathbiz | last post by:
Hello, and nice to meet all of you: My name's Chad, and I have a head-bashing problem. I built out a photo gallery with very specific mouseover/onclick etc. behaviors. It works fine in Firefox....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.