469,277 Members | 2,276 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,277 developers. It's quick & easy.

Simple image gallery?

Hello

I've been googling for a couple of hours, but still haven't found what
I need:
- really simple PHP-based image gallery software. Ideally, just a
single file that I just drop into a directory filled with JPG files
- uses eg. GD to generate thumbnails automagically, and saves them
into a sub-directory for the next time (I don't want thumbnails to be
regenerated every time someone views the pictures)
- as an option, supports slideshow
- free/open-source

Any good recommendation?

Thank you.
Oct 3 '07 #1
25 3826
On Oct 3, 1:27 pm, Gilles Ganault <nos...@nospam.comwrote:
I've been googling for a couple of hours, but still haven't found what
I need:
- really simple PHP-based image gallery software.
look for Robopages at phpclasses.org

Oct 3 '07 #2
On Oct 3, 1:27 pm, Gilles Ganault wrote:
I've been googling for a couple of hours, but still haven't found
what I need:
- really simple PHP-based image gallery software.
Have you tried the glob() function?
http://us2.php.net/manual/en/function.glob.php

Or the opendir() function?

http://us2.php.net/manual/en/function.opendir.php

The example for the opendir() function:

<?php
$dir = "/etc/php5/";

// Open a known directory, and proceed to read its contents
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
echo "filename: $file : filetype: " . filetype($dir . $file) . "\n";
}
closedir($dh);
}
}
?>

which prints out:

filename: . : filetype: dir
filename: .. : filetype: dir
filename: apache : filetype: dir
filename: cgi : filetype: dir
filename: cli : filetype: dir

--
Jim Carlock
Swimming Pool, Spa And Water Feature Builders
http://www.aquaticcreationsnc.com/
Oct 3 '07 #3
On Wed, 3 Oct 2007 16:49:23 -0400, "Jim Carlock" <an*******@127.0.0.1>
wrote:
(snip)

Thanks for the reply, but I'd rather use something that's already
available rather than writing my own.

Features:
- no DB required
- one (or a few) PHP files, ie. really basic footprint
- generates thumbnails, and saves copy in sub-dir to avoid re-creating
thumbnails every time
- basic, no thrill layout template

Thanks.
Oct 4 '07 #4
On Wed, 03 Oct 2007 21:27:45 +0200, Gilles Ganault <no****@nospam.com>
wrote:
Hello

I've been googling for a couple of hours, but still haven't found what
I need:
- really simple PHP-based image gallery software. Ideally, just a
single file that I just drop into a directory filled with JPG files
- uses eg. GD to generate thumbnails automagically, and saves them
into a sub-directory for the next time (I don't want thumbnails to be
regenerated every time someone views the pictures)
- as an option, supports slideshow
- free/open-source

Any good recommendation?
Well, 'good'.. OK I guess: http://www.mywebmymail.com/, EasyPhpAlbum. Has
all the requrements you mention.
--
Rik Wasmus
Oct 4 '07 #5
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gilles Ganault wrote:
Hello

I've been googling for a couple of hours, but still haven't found what
I need:
- really simple PHP-based image gallery software. Ideally, just a
single file that I just drop into a directory filled with JPG files
- uses eg. GD to generate thumbnails automagically, and saves them
into a sub-directory for the next time (I don't want thumbnails to be
regenerated every time someone views the pictures)
- as an option, supports slideshow
- free/open-source

Any good recommendation?

Thank you.

http://www.google.com/search?hl=en&q...=Google+Search

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHBNhsQuDJiZ/QrH0RAs2OAJsF9F15Zb5HnV0r/R+t2fWePsgJpQCfQHqL
G33yLPcxnrz1pmYrubI+HAU=
=eY+w
-----END PGP SIGNATURE-----
Oct 4 '07 #6
I developed the following to display the pictures for a particular
customer...

http://www.aquaticcreationsnc.com/sw...r/nc/beanland/

If you're interested in the way that works, I've got the source
code for the layout.

--
Jim Carlock
Swimming Pool, Spa And Water Feature Builders
http://www.aquaticcreationsnc.com/
Oct 4 '07 #7
On Thu, 04 Oct 2007 08:44:44 +0200, "Rik Wasmus"
<lu************@hotmail.comwrote:
>Well, 'good'.. OK I guess: http://www.mywebmymail.com/, EasyPhpAlbum. Has
all the requrements you mention.
Thanks, just what I was looking for.
Oct 5 '07 #8
Hi Gilles,

I have written one you might be interested in. It is hosted by
Sourceforge, so don't hesitate to follow this link:

http://atomphotoblog.sourceforge.net/

Although consists of a little more than a single file, it is a
lightweight program and, of course, free and open-source.

Sincerly
Sascha Tayefeh

Oct 10 '07 #9
On Wed, 10 Oct 2007 22:54:34 -0000, Sascha Tayefeh
<sa************@googlemail.comwrote:
>http://atomphotoblog.sourceforge.net/

Although consists of a little more than a single file, it is a
lightweight program and, of course, free and open-source.
Thanks, I'll give it a shot.
Oct 16 '07 #10
- really simple PHP-based image gallery software. Ideally, just a
single file that I just drop into a directory filled with JPG files
- uses eg. GD to generate thumbnails automagically, and saves them
into a sub-directory for the next time (I don't want thumbnails to be
regenerated every time someone views the pictures)
- as an option, supports slideshow
- free/open-source

I've actually been developing an image gallery that may be of some
help to you. I wasn't going to release this out into the wild yet
because I don't have a site setup for it yet, but I figured I may as
well try to help you out if at all possible.

So any ways, check out this link http://www.virtualconsolemondays.com...ery.php?page=0

If it is what you are looking for the great, if it is missing anything
you should be able to easily add it in.
Also if you need any help with it all just shoot me an email.

Oct 27 '07 #11
On Oct 27, 5:28 pm, "pennington.ch...@gmail.com"
<pennington.ch...@gmail.comwrote:
- really simple PHP-based image gallery software. Ideally, just a
single file that I just drop into a directory filled with JPG files
- uses eg. GD to generate thumbnails automagically, and saves them
into a sub-directory for the next time (I don't want thumbnails to be
regenerated every time someone views the pictures)
- as an option, supports slideshow
- free/open-source

I've actually been developing an image gallery that may be of some
help to you. I wasn't going to release this out into the wild yet
because I don't have a site setup for it yet, but I figured I may as
well try to help you out if at all possible.

So any ways, check out this linkhttp://www.virtualconsolemondays.com/img/gallery/lightgallery.php?page=0

If it is what you are looking for the great, if it is missing anything
you should be able to easily add it in.
Also if you need any help with it all just shoot me an email.
Updated the link to the gallery it is now:

http://downupdesigns.com/lightgaller...ery.php?page=0

Oct 28 '07 #12
pe**************@gmail.com wrote:
On Oct 27, 5:28 pm, "pennington.ch...@gmail.com"
<pennington.ch...@gmail.comwrote:
>>- really simple PHP-based image gallery software. Ideally, just a
single file that I just drop into a directory filled with JPG files
- uses eg. GD to generate thumbnails automagically, and saves them
into a sub-directory for the next time (I don't want thumbnails to be
regenerated every time someone views the pictures)
- as an option, supports slideshow
- free/open-source
I've actually been developing an image gallery that may be of some
help to you. I wasn't going to release this out into the wild yet
because I don't have a site setup for it yet, but I figured I may as
well try to help you out if at all possible.

So any ways, check out this linkhttp://www.virtualconsolemondays.com/img/gallery/lightgallery.php?page=0

If it is what you are looking for the great, if it is missing anything
you should be able to easily add it in.
Also if you need any help with it all just shoot me an email.

Updated the link to the gallery it is now:

http://downupdesigns.com/lightgaller...ery.php?page=0
Very nice.

What is the CC license ?

bill
Oct 28 '07 #13
On Oct 28, 9:32 am, bill <nob...@spamcop.netwrote:
pennington.ch...@gmail.com wrote:
On Oct 27, 5:28 pm, "pennington.ch...@gmail.com"
<pennington.ch...@gmail.comwrote:
>- really simple PHP-based image gallery software. Ideally, just a
single file that I just drop into a directory filled with JPG files
- uses eg. GD to generate thumbnails automagically, and saves them
into a sub-directory for the next time (I don't want thumbnails to be
regenerated every time someone views the pictures)
- as an option, supports slideshow
- free/open-source
I've actually been developing an image gallery that may be of some
help to you. I wasn't going to release this out into the wild yet
because I don't have a site setup for it yet, but I figured I may as
well try to help you out if at all possible.
So any ways, check out this linkhttp://www.virtualconsolemondays.com/img/gallery/lightgallery.php?page=0
If it is what you are looking for the great, if it is missing anything
you should be able to easily add it in.
Also if you need any help with it all just shoot me an email.
Updated the link to the gallery it is now:
http://downupdesigns.com/lightgaller...ery.php?page=0

Very nice.

What is the CC license ?

bill
Eh, I haven't put that into the code have I? Basically use it how you
want and when I put the license in the code all you have to do is
leave it in there. Free to edit and redistribute with the eventual CC
license intact.

Oct 28 '07 #14
<comp.lang.php>
<pe**************@gmail.com>
<Sun, 28 Oct 2007 17:51:41 -0000>
<11**********************@o3g2000hsb.googlegroups. com>
>http://downupdesigns.com/lightgaller...ery.php?page=0
Very nice.

What is the CC license ?

bill

Eh, I haven't put that into the code have I? Basically use it how you
want and when I put the license in the code all you have to do is
leave it in there. Free to edit and redistribute with the eventual CC
license intact.
Have you (or most other users) ever questioned why something that nobody
pays the slightest bit of attention too gets included - along with some
bollocks text saying it shouldnt be removed .

BTW: these are usually the same people who point out 'the futility of
war' movies make a valid point - ha ha ha ha ha :-)
--
www.jpgimage.co.uk
Oct 28 '07 #15
On Oct 28, 12:59 pm, Krustov <m...@privacy.netwrote:
<comp.lang.php>
<pennington.ch...@gmail.com>
<Sun, 28 Oct 2007 17:51:41 -0000>
<1193593901.765164.278...@o3g2000hsb.googlegroups. com>
http://downupdesigns.com/lightgaller...ery.php?page=0
Very nice.
What is the CC license ?
bill
Eh, I haven't put that into the code have I? Basically use it how you
want and when I put the license in the code all you have to do is
leave it in there. Free to edit and redistribute with the eventual CC
license intact.

Have you (or most other users) ever questioned why something that nobody
pays the slightest bit of attention too gets included - along with some
bollocks text saying it shouldnt be removed .

BTW: these are usually the same people who point out 'the futility of
war' movies make a valid point - ha ha ha ha ha :-)

--www.jpgimage.co.uk
Ya, that is kinda true. Especially with php since all of the code is
parsed server side and any comments are never seen by the browser.
But none the less, it is nice to have at least the original url in
there so that if there are ever any problems you have a good place to
look.

But then again, what does it really matter? You are getting something
for free.

Oct 28 '07 #16
On Sun, 28 Oct 2007 18:59:53 +0100, Krustov <me@privacy.netwrote:
<comp.lang.php>
<pe**************@gmail.com>
<Sun, 28 Oct 2007 17:51:41 -0000>
<11**********************@o3g2000hsb.googlegroups. com>
>http://downupdesigns.com/lightgaller...ery.php?page=0

Very nice.

What is the CC license ?

bill

Eh, I haven't put that into the code have I? Basically use it how you
want and when I put the license in the code all you have to do is
leave it in there. Free to edit and redistribute with the eventual CC
license intact.

Have you (or most other users) ever questioned why something that nobody
pays the slightest bit of attention too gets included - along with some
bollocks text saying it shouldnt be removed .
99% of the time useless indeed, just something for the ego of the original
author. The other 1% is usefull though, people pointing out bugs/adding or
proposing features/discovering security issues might like to know where to
comment on it.
BTW: these are usually the same people who point out 'the futility of
war' movies make a valid point - ha ha ha ha ha :-)
Well, they sometimes make a point, they're just not going to change
anything. Wether it makes a point or not hasn't got anything to do with
being a good movie offcourse, allthough the preachy ones tend to forget to
include a descent story somewhat more often.
--
Rik Wasmus
Oct 28 '07 #17
Just released a new version of my lightGallery php script.

Updates:

1. No use of a flat file database anymore. (unneeded thumbnail
removal)
2. JavaScript enabled and disabled versions, you choose now.
3. Other slight tweaks/optimizations.

Check out lightGallery 1.0: http://www.downupdesigns.com/lightga...ery.php?page=0

Nov 8 '07 #18
On Nov 7, 9:28 pm, "pennington.ch...@gmail.com"
<pennington.ch...@gmail.comwrote:
Just released a new version of my lightGallery php script.

Updates:

1. No use of a flat file database anymore. (unneeded thumbnail
removal)
2. JavaScript enabled and disabled versions, you choose now.
3. Other slight tweaks/optimizations.

Check out lightGallery 1.0:http://www.downupdesigns.com/lightga...ery.php?page=0
Very nice;

The previous and next links were non functional in the non javascript
version.

Nov 8 '07 #19
On Nov 7, 11:41 pm, la...@portcommodore.com wrote:
>
Very nice;

The previous and next links were non functional in the non javascript
version.

Yeah, sorry about that. They are functional, but I just didn't upload
enough pictures to fill more than one page. I'll go ahead and upload
the rest just so that no one thinks this is an issue.

Nov 9 '07 #20
pe**************@gmail.com wrote:
On Nov 7, 11:41 pm, la...@portcommodore.com wrote:
>>Very nice;

The previous and next links were non functional in the non javascript
version.

Yeah, sorry about that. They are functional, but I just didn't upload
enough pictures to fill more than one page. I'll go ahead and upload
the rest just so that no one thinks this is an issue.
Just wondering... is the ability to add descriptions to the individual
photos somewhere on the future "to do" list?
Nov 9 '07 #21
<comp.lang.php>
<JackM>
<Fri, 09 Nov 2007 08:33:22 -0500>
<Va******************************@comcast.com>
Just wondering... is the ability to add descriptions to the individual
photos somewhere on the future "to do" list?
www.jpgimage.co.uk/view.php?image=256

While not suggesting the above is the best way to do it - personally i
like some of the other image data to be displayed as well and in one
respect its actually a web design problem as no layout will ever be
perfect or suit everybody .
Nov 9 '07 #22
On Nov 9, 8:33 am, JackM <notr...@earthlink.netwrote:
>
Just wondering... is the ability to add descriptions to the individual
photos somewhere on the future "to do" list?
It really isn't in my plans to make such an addition. My initial
vision for this script was to just grab all of the images out of a
directory and display them with thumbnails and use a functional
navigation system for multiple pages of pictures. I've been trying to
keep it as light weight as possible and I don't really want to include
any database work (which would be needed for desciptions and other
information for each picture).

If anyone wants to take my code and create a more intuitive image
gallery with it, then by all means do so, but I feel that I have
created a solution for the initial problem that I had in mind.

I'm always free to suggestions, and I hope to be creating an actual
description page for this project in the near future so that it is
easier to understand any changes and to also make requests.

Nov 9 '07 #23
In article <11*********************@19g2000hsx.googlegroups.c om>,
pe**************@gmail.com () wrote:
*Subject:* Re: Simple image gallery?
*From:* "pe**************@gmail.com" <pe**************@gmail.com>
*Date:* Fri, 09 Nov 2007 12:38:48 -0800

On Nov 9, 8:33 am, JackM <notr...@earthlink.netwrote:

Just wondering... is the ability to add descriptions to the
individual
photos somewhere on the future "to do" list?

It really isn't in my plans to make such an addition. My initial
vision for this script was to just grab all of the images out of a
directory and display them with thumbnails and use a functional
navigation system for multiple pages of pictures. I've been trying
to
keep it as light weight as possible and I don't really want to
include
any database work (which would be needed for desciptions and other
information for each picture).

If anyone wants to take my code and create a more intuitive image
gallery with it, then by all means do so, but I feel that I have
created a solution for the initial problem that I had in mind.

I'm always free to suggestions, and I hope to be creating an actual
description page for this project in the near future so that it is
easier to understand any changes and to also make requests.

JAlbum gets round this by taking text from a .txt file.

photo1.jpg displays text from photo1.txt
photo2.jpg < photo2.txt and so on.

Unfortunately JA needs to be rebuilt each time the folder contents change
:-(

As this is dynamic, I like it :-)

Previous/Next links while the photo is open full screen would be nice too.
To work through an entire folder when there are lots of photos becomes a
drag continually returning to the index page.

Thanks,

- Steve
Nov 12 '07 #24
On Nov 12, 2:52 am, j80k-v...@dea.spamcon.org (Steve) wrote:
In article <1194640728.807565.27...@19g2000hsx.googlegroups.c om>,

pennington.ch...@gmail.com () wrote:
*Subject:* Re: Simple image gallery?
*From:* "pennington.ch...@gmail.com" <pennington.ch...@gmail.com>
*Date:* Fri, 09 Nov 2007 12:38:48 -0800
On Nov 9, 8:33 am, JackM <notr...@earthlink.netwrote:
Just wondering... is the ability to add descriptions to the
individual
photos somewhere on the future "to do" list?
It really isn't in my plans to make such an addition. My initial
vision for this script was to just grab all of the images out of a
directory and display them with thumbnails and use a functional
navigation system for multiple pages of pictures. I've been trying
to
keep it as light weight as possible and I don't really want to
include
any database work (which would be needed for desciptions and other
information for each picture).
If anyone wants to take my code and create a more intuitive image
gallery with it, then by all means do so, but I feel that I have
created a solution for the initial problem that I had in mind.
I'm always free to suggestions, and I hope to be creating an actual
description page for this project in the near future so that it is
easier to understand any changes and to also make requests.

JAlbum gets round this by taking text from a .txt file.

photo1.jpg displays text from photo1.txt
photo2.jpg < photo2.txt and so on.
That is definitely a decent way of doing that, but the thinking behind
my gallery is that I didn't want the user to really have to do
anything besides uploading the script and the images. To tell the
truth it really wouldn't be that hard to incorporate that sort of idea
into this script.
>
Previous/Next links while the photo is open full screen would be nice too.
To work through an entire folder when there are lots of photos becomes a
drag continually returning to the index page.

I'm guessing you are talking about the non-javascript version, which I
plan on fixing that in a small update, I just haven't gotten around to
it yet.

This one discussion is the only real place that I have publicly spoken
about the gallery.
Nov 15 '07 #25
In article
<7e**********************************@n20g2000hsh. googlegroups.com>,
pe**************@gmail.com () wrote:

JAlbum gets round this by taking text from a .txt file.

photo1.jpg displays text from photo1.txt
photo2.jpg < photo2.txt and so on.

That is definitely a decent way of doing that, but the thinking
behind
my gallery is that I didn't want the user to really have to do
anything besides uploading the script and the images. To tell the
truth it really wouldn't be that hard to incorporate that sort of
idea
into this script.

Previous/Next links while the photo is open full screen would be
nice too.
To work through an entire folder when there are lots of photos
becomes a
drag continually returning to the index page.


I'm guessing you are talking about the non-javascript version,
which I
plan on fixing that in a small update, I just haven't gotten around
to
it yet.

This one discussion is the only real place that I have publicly
spoken
about the gallery.
On my photo upload page, I ask for text after the browse for photo. That
then gets stored together with the photo... same name different suffix.

JAlbum does the rest.
- Steve
Nov 15 '07 #26

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Perttu Pulkkinen | last post: by
8 posts views Thread by Chris Dewin | last post: by
4 posts views Thread by RE Kochanski | last post: by
1 post views Thread by www.web20developers.com | last post: by
1 post views Thread by gescom | last post: by
4 posts views Thread by Paul Furman | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.