Photos

Hi,

I want to build something like photo album from scratch, the idea is that I want the visitor to be able to upload a photo and then the photo will be published on the main page (it should be small) and when anyone clicks on it, then it appears in its original size. Just give me the ideas what should I do?

Cheers.

Maybe you should take a look at existing open source php image galleries to get an idea of how it’s done. Then you can create your own or reuse some of the code you’ll find in those projects.

  1. you can use a html form with file type inputs to upload the images onto your website.

  2. use something like php to then create thumbnails “on the fly” (unless you want separate thumbnail and enlargement image versions which you don’t really need)

  3. use javascript with onclick event handlers or css :hover pseudo class to display the enlargement when the associated event occurs.