Chris Marasti-Georg
Chris Marasti-Georg

Reputation: 34650

Quickest way to implement a searchable, browsable image gallery - flickr integration?

I have a friend who is need of a web page. He does interior construction, and would like to have a gallery of his work. I'll probably go for a php host, and was thinking about the best way to implement the image gallery for him. I came up with:

Thanks for any input!

Upvotes: 2

Views: 5915

Answers (6)

VirtuosiMedia
VirtuosiMedia

Reputation: 53356

These might be of help. They are mootools scripts and run without any server-side coding necessary. Both integrate with Flickr.

Upvotes: 1

Rob Y
Rob Y

Reputation: 841

Having Read SchizoDuckie's post, I had a look at the picasa api for php, and found it a bit daunting to start with, however I found this sample code absolutely brilliant for getting started with some basic integration.

Samples for other languages also seem to be available - can't vouch for their usefullness, but suspect they will be good too.

Upvotes: 1

Jim Nelson
Jim Nelson

Reputation: 1728

I recently implemented a Flickr-based photo gallery for a client. Flickr was perfect for them for a lot of reasons. Gallery is an impressive open-source project, but its feature set (and complexity of administration) was overkill for what this client needed.

Check out the Flickr API, especially the section on building URLs, which will be necessary when building your web pages. Don't bother coding a PHP wrapper for the API's. phpFlickr has already done it, and it's a smart implementation.

Here's a helper function I wrote that made life a lot easier for the various pages that need to access Flicker:

function newFlickr()
{

     static $flickr = NULL;


     if($flickr != NULL)
     {
         return $flickr;
     }

     $flickr = new phpFlickr(api-key, secret);
     $flickr->setToken(token);
     $flickr->enableCache("db", "mysql://acct:pass@localhost/flickrcache");

     return $flickr;

}

The trick here is that all the crud you need to enter is stored in a central place in your code. Caching is key, so use it. And, if you need a phpFlickr object in multiple places for each request, you're only ctor'ing it once, which saves on init time.

Upvotes: 1

SchizoDuckie
SchizoDuckie

Reputation: 9401

The perfect solution for this kind of thing is Picasa (from Google ofcourse)

You get:

  • 1gb of free storage space on a Google Picasaweb account that already has a web interface with embeddable slideshows and stuff
  • A compete image browse and upoad program for the client side (namely Picasa) that's directly connected to the web albums. It's so user friendly that even your grandma can put her pictures online with that.
  • RSS feeds and an API from google.
  • there's a custom light-weight PHP api available

Need anyting else?


Note from Chris to others that may be looking for an answer: The API can be found here.

Upvotes: 3

Jason Miesionczek
Jason Miesionczek

Reputation: 14448

If you have any interest in Ruby on Rails, there is a screencast here that shows how to create a site similar to what you are describing in RoR.

Upvotes: 0

Greg
Greg

Reputation: 321588

It sounds like a difficult way to do things - have you considered Gallery (No points on creativity for the name!).

Unless you're really wanting to save on bandwidth, I think you'd get much better results from installing some pre-built gallery.

Upvotes: 3

Related Questions