Online Photo Galleries

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
jyhm
Forum Contributor
Posts: 228
Joined: Tue Dec 19, 2006 10:08 pm
Location: Connecticut, USA
Contact:

Online Photo Galleries

Post by jyhm »

Does anyone use those premade Online Photo Galleries like Gallery 2 ?

I installed it on my server thinking that it would save me time, as opposed to rolling my own. Wow what a mess, css files all over the place. Its taking me longer to create my own theme than if I made it from scratch. My questions are:
  • 1) Why use a database? wouldn't that make rearranging album folders a pain?
    2) Wouldn't using php to recursively loop through a directory be a little easier? And better for updateing incase you wanted change directory names?
    3) From what I understand, php is able to read image metadata such as descriptions. I have never done this has anyone else?
marionconsulting
Forum Newbie
Posts: 4
Joined: Thu Feb 01, 2007 1:03 am

Post by marionconsulting »

I just found one that can be used for Joomla installations and it is very straightforward. You just create a directory and drop the files in. It then parses the files and displays the images with a nice UI for forward/backward navigation. It is basic and it requires Joomla, Mambo. It is called "Simple Image Gallery" Plugin v1.x (by JoomlaWorks.gr)

It's probably not what you are looking for since it has the requirements of the existing CMS, but you could probably download the code and modify it for your own use.
wildwobby
Forum Commoner
Posts: 66
Joined: Sat Jul 01, 2006 8:35 pm

Post by wildwobby »

Yeah, of course thats much easier!!!

make a couple functions that load images into array, display an image, resize images an thumbnails, display nav, etc... Then you make some java script to like higlight the selected picture on the nav and so on.
User avatar
jyhm
Forum Contributor
Posts: 228
Joined: Tue Dec 19, 2006 10:08 pm
Location: Connecticut, USA
Contact:

Post by jyhm »

I just downloaded a read image metadata function from
http://www.photography-on-the.net/ee/be ... o_exif.php.
It works except it does not have the info I want like description, title, etc.
Those regex used it that function are beyond me. I don't know how to view
an images binary source to even examine and create a regex.

I have tried the exif_read_data() function but my server sends an
error message stating there was a call to an undefined function.
Go figure, I'm using PHP5 to!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

The exif extension is required for them to work.. ;)
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Flickr + their API works for me. ;)

(Moving this to General)
User avatar
jyhm
Forum Contributor
Posts: 228
Joined: Tue Dec 19, 2006 10:08 pm
Location: Connecticut, USA
Contact:

Post by jyhm »

Thank You for replies all! Sorry I did not post to the right section.
feyd wrote:The exif extension is required for them to work.. ;)
I must read text like php reads errors! :wink: Anyway yikes to that, I would have to recompile php for my local server right? :? Luckily my remote server is compiled with the exif extension.

I also have found a way to regex through the meta data. If you are using photoshop, then photoshop uses templates for its xmp data. When you are finished creating metadata for an image, just create a template and look at that for proper regex for the areas you want!

@m3mn0n: I have seen flicker but I despise having to use those sort of services. This points out that I will probably have to roll my own. The biggest reason is the difficulty I have in modifying or creating themes. They don't create in a structure that I create with. In other words a directory structure like CSS, CLASS, JS, IMG, TEMPLATES, respectively. Another service like this that is difficult for me to modify themes is wordpress.
Post Reply