Photo Album / Picture Gallery Script with PHP


This is a all-in-one-file small and powerful image gallery script with PHP. Just upload your images to directory of script with FTP. It is free for private use. For a demo click on screenshot-image.

Features:

  • Scann directory and display images in web formats automagically
  • Create thumbnail images dynamically on the fly (from all JPEG, GIF, PNG)
  • Sort images by name, size or last modified time
  • Easily change how many thumbnail-images displayed per page
  • Page navigation
  • Display image name (trim long filename)
  • Display image dimensions: width x height
  • Display image filesize in kilobytes
  • Display last modified time
  • Display number of total images
  • Easily change album name, description, width
  • Easily change thumbnail width/height
  • Automagically select largest dimension to scale thumbnail
  • Link to original image file
  • Meta title and description
AttachmentSize
Download Photo_Gallery_Script_with_PHP.zip2.5 KB

Comments

Feature suggestions for

Feature suggestions for future:

Save thumbnails instead dynamic creation
Multiple albums
Search
View middle size images
Watermark big images
Max image size limit
Sort by height - width
Sort by image type

Hi, how do you put the images

Hi,

how do you put the images in it? sorry im new.

thanks

Put in the same directory

You dont need to put images in this script, it can dedect images automagically. Just put your images and this script in the same directory.

I'm getting alot of errors when running the script...

Hi,

When I run the script I'm getting a whole bunch of errors:

########ERRORS BEGIN########

Notice: Use of undefined constant start - assumed 'start' in rf09\gallery\gallery.php on line 24

Notice: Undefined index: start in rf09\gallery\gallery.php on line 24

Notice: Use of undefined constant sortby - assumed 'sortby' in rf09\gallery\gallery.php on line 26

Notice: Undefined index: sortby in rf09\gallery\gallery.php on line 26

Notice: Use of undefined constant sortby - assumed 'sortby' in rf09\gallery\gallery.php on line 27

Notice: Undefined index: sortby in rf09\gallery\gallery.php on line 27

Notice: Undefined variable: i in rf09\gallery\gallery.php on line 73

Notice: Undefined variable: imgl in rf09\gallery\gallery.php on line 81

Notice: Undefined variable: page_htmo in rf09\gallery\gallery.php on line 91

Notice: Undefined index: thumb in rf09\gallery\gallery.php on line 156

########ERRORS END########

Is there something I'm doing wrong or should be aware of?

I'm really hoping you can help 'cause I'm looking for just that kind of gallery-script.

/Bobo

just change your php settings

just change your php settings to not show notice level output ot put array element between single quotas

example:

change $image[name] to $image['name']

testking

Really interesting one, i much appreciate. Thanks for sharing the information.

check if your php has gd

check if your php has gd support or send your url here. what error do you get when you load just one thumbnail like this:
www.cafewebmaster.com/demo/web2_image_gallery/index.php?thumb=Chrysler_Crossfire_Cabrio_black_vr.jpg

First, thanks for a

First, thanks for a brilliantly simple, yet powerful script! I looked everywhere and you finally provided what I needed, bravo!

It works fine for me with most dirs, however there's one dir that contains a substantial amount of animated gifs, some several megabytes in size. I can access the images but it won't display thumbnails and I get this error:

Warning: getimagesize(): Read error! in /home/content/imagedir/index.php on line 44

Maybe disabling the get size part of the script would fix it?

Thanks again

why is that my images are not shown and outputs a text like

why is that my images are not shown and outputs a text like the day it was modified and only the name of my pics, but it is hyperlinked.

nice script thanx

nice script thanx

nice script ty but

I would like to know, if someone knows how to hide the file extensions, for example: jpg, gif, png,

When I order the images by date, the program puts the newest images at the bottom. Is there a way of ordering them backwards, with the newest at the top?

Thank you

include

Iam trying iclude this file (like gallerie.php) in to my index.php, but the scritp cant correctly read folder photos.
Warning: filesize() [function.filesize]: stat failed for IMG_0601.jpg in
/gallerie.php on line 41

Warning: filemtime() [function.filemtime]: stat failed for IMG_0601.jpg in
/gallerie.php on line 42

Warning: getimagesize() [function.getimagesize]: Unable to access IMG_0601.jpg in
/gallerie.php on line 44

Warning: getimagesize(IMG_0601.jpg) [function.getimagesize]: failed to open stream: No such file or directory in
/gallerie.php on line 44

Its possible to customize this gallery scritp?

bug in album script - how do i contact you.

bug in album script - how do i contact you.

is cool, but, show me thumb.

is cool, but, show me thumb. only SQUARED images,
ex: 2500x2500 pixel.
NOT show me 2500x 3500 pixel :-?
thank you.

Thumbnail

The quality of the pic showing on thumbnails is not great :(
can this be fix?

You dont need to put images

You dont need to put images in this script, it can dedect images automagically. Just put your images and this script in the same directory.

help

having this error plz tell me whts wrong?and do we need to make database?
Warning: asort() expects parameter 1 to be array, null given in C:\wamp\www\New folder\index.php on line 51

Warning: asort() expects parameter 1 to be array, null given in C:\wamp\www\New folder\index.php on line 52

Warning: asort() expects parameter 1 to be array, null given in C:\wamp\www\New folder\index.php on line 53

Warning: Invalid argument supplied for foreach() in C:\wamp\www\New folder\index.php on line 72

how we can upload photo from user in this system and display in this gallery plz share code for that thanks

help

having this error plz tell me whts wrong?and do we need to make database?
Warning: asort() expects parameter 1 to be array, null given in C:\wamp\www\New folder\index.php on line 51

Warning: asort() expects parameter 1 to be array, null given in C:\wamp\www\New folder\index.php on line 52

Warning: asort() expects parameter 1 to be array, null given in C:\wamp\www\New folder\index.php on line 53

Warning: Invalid argument supplied for foreach() in C:\wamp\www\New folder\index.php on line 72

how we can upload photo from user in this system and display in this gallery plz share code for that thanks

help

how we can upload photo from user in this system and display in this gallery plz share code for that thanks

I am using this plz help me

Hello ..
I am using this script on url http://www.vipdaku.com/data/celebs/bollywood/f/Aishwarya-Rai/

But there is a problem that when i upload a pic in my server the latest photo goes to last pagination....!!! i want that it should show on ever first pagination on first no.
Colud u plz suggest me any advice on this topic... Plz mail me : Yasbirsidhu5@gmail.com

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <b> <pre> <h1> <h2> <h3> <h4> <h5> <h6> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <div> <style><img> <br> <blockquote>
  • Lines and paragraphs break automatically.
  • You may insert videos with [video:URL]

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.

CafeWebmaster.com(CW) is a free online community for webdevelopers and beginners. Anybody can share their code, articles, tips, tutorials, code-examples or other webdesign related material on the site. Newbies can submit their questions and reply to existing questions. CW does not guarantee or warrant reliability of code, data and information published on the site. Use the site on your own risk. The site takes no responsibility of direct or indirect loss or any kind of harm to its users. The site also doesn't take responsibility of infected files or source code with any kind of infection or viruses, worms, spywares, malwares, trojan horses. CW reserves the right to edit, move, or delete any of content for any reason.