24
Introduction to Gallery Bharat Mediratta July 25, 2002

Introduction to Gallery

  • Upload
    wyatt

  • View
    42

  • Download
    0

Embed Size (px)

DESCRIPTION

Introduction to Gallery. Bharat Mediratta July 25, 2002. What is Gallery. Open Source PHP application Your photos on your website Provides similar functionality to commercial ASP products like Yahoo! Photos, Club Photo, PBASE. Brief History of Gallery. - PowerPoint PPT Presentation

Citation preview

Page 1: Introduction to Gallery

Introduction to Gallery

Bharat Mediratta

July 25, 2002

Page 2: Introduction to Gallery

What is Gallery

• Open Source PHP application

• Your photos on your website

• Provides similar functionality to commercial ASP products like Yahoo! Photos, Club Photo, PBASE

Page 3: Introduction to Gallery

Brief History of Gallery

• Started May 2000, small development team

• Targeted at individual webmasters (me!)

• Installed on 20-30K+ websites today

• 200-300 new installs every day

Page 4: Introduction to Gallery

Why Do You Need Gallery?

• You have a digital camera – and you use it!

• You want the photos nicely integrated on your website

• You don’t want to subject your visitors to advertising

• You don’t trust dot coms with your data.

Page 5: Introduction to Gallery

The Gallery 1.x Challenge

• Create an application with low barrier to entry to reach the broadest user base:– No database requirement– Don’t require custom PHP configuration (eg,

compiled in GD, JPEG, PNG support)– Don’t require shell access to install– Run on Unix and Windows– Provide configuration wizard

Page 6: Introduction to Gallery

The Tradeoffs

• No database concurrency issues

• External graphics library config issues

Page 7: Introduction to Gallery

Gallery Configuration Security

Problem

Config wizard needs to create an output file, but we only want that file to be writeable at configuration time:

Solution (borrowed from Horde)

Create scripts to switch Gallery between configuration and secure modes

Page 8: Introduction to Gallery

Gallery Config Wizard Part 1

• Check out the user’s system

Page 9: Introduction to Gallery

Gallery Config Wizard Part 2

• Ask the user lots of questions and provide example answers

Page 10: Introduction to Gallery

Gallery Config Wizard Part 3

• Check the user’s answers!– The sooner we find configuration problems, the

less time the user wastes

Page 11: Introduction to Gallery

Add photos!

• Log in

• Create a New Album

• Set Album title, URL, etc.

• Upload Photos from browser

• Slurp photos from another website

Page 12: Introduction to Gallery

Manage Photos

• Rotate images

• Automatically create thumbnails

• Resize images

• Cutomize thumbnails

Page 13: Introduction to Gallery

Organize Albums

• Nested albums

• User permissions

• Optional Features:– Print Service– Slideshow– User Comments

Page 14: Introduction to Gallery

Gallery Remote

• Java companion program

• Upload Photos using a rich interface

Page 15: Introduction to Gallery

Customizing: HTML Wrappers

• Use HTML wrappers to frame your Gallery, Albums, and Photos

• Wrappers canalso be used toadd functionality(like a ShoppingCart interface)

Page 16: Introduction to Gallery

Customizing: Style Sheets

• Easily change the lookby modifying the Gallerystyle sheet

Page 17: Introduction to Gallery

Customizing: Change the code

• The Open Source advantage: Add all new functionality to Gallery by modifying the source code

Page 18: Introduction to Gallery

Gallery and CMS/Portals

• PHP-Nuke and PostNuke

• Geeklog

• PhpBB2

• XOOPS

Page 19: Introduction to Gallery

Gallery E-commerce Plugins

• Use the HTML Wrappers to add:– Shopping cart – Inventory integration– Virtual post cards– Print services

Page 20: Introduction to Gallery

Strengths

• Lightweight

• Easy to install

• Works in most environments

• Uncluttered interface

• Feature rich

• Good support community

Page 21: Introduction to Gallery

Weaknesses

• Performance degrades in large Galleries

• Reliability issues– greatly improved in newer versions

• No Internationalization

• No Templates

• Concurrency Problems

Page 22: Introduction to Gallery

Lessons Learned

• Hold the user’s hand (config wizard)

• Build a community!

• Release early, release often

• Accept and integrate user criticism

Page 23: Introduction to Gallery

G2: The Future of Gallery

• Reliability, Scalability, Flexibility

• Templates

• Concurrency Support

• Relational Database support

• Better CMS Integration

• Internationalization

• Dynamic thumbnail generation

Page 24: Introduction to Gallery

Questions