Introduction to Gallery
description
Transcript of Introduction to Gallery
![Page 1: Introduction to Gallery](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/1.jpg)
Introduction to Gallery
Bharat Mediratta
July 25, 2002
![Page 2: Introduction to Gallery](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/2.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/3.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/4.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/5.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/6.jpg)
The Tradeoffs
• No database concurrency issues
• External graphics library config issues
![Page 7: Introduction to Gallery](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/7.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/8.jpg)
Gallery Config Wizard Part 1
• Check out the user’s system
![Page 9: Introduction to Gallery](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/9.jpg)
Gallery Config Wizard Part 2
• Ask the user lots of questions and provide example answers
![Page 10: Introduction to Gallery](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/10.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/11.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/12.jpg)
Manage Photos
• Rotate images
• Automatically create thumbnails
• Resize images
• Cutomize thumbnails
![Page 13: Introduction to Gallery](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/13.jpg)
Organize Albums
• Nested albums
• User permissions
• Optional Features:– Print Service– Slideshow– User Comments
![Page 14: Introduction to Gallery](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/14.jpg)
Gallery Remote
• Java companion program
• Upload Photos using a rich interface
![Page 15: Introduction to Gallery](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/15.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/16.jpg)
Customizing: Style Sheets
• Easily change the lookby modifying the Gallerystyle sheet
![Page 17: Introduction to Gallery](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/17.jpg)
Customizing: Change the code
• The Open Source advantage: Add all new functionality to Gallery by modifying the source code
![Page 18: Introduction to Gallery](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/18.jpg)
Gallery and CMS/Portals
• PHP-Nuke and PostNuke
• Geeklog
• PhpBB2
• XOOPS
![Page 19: Introduction to Gallery](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/19.jpg)
Gallery E-commerce Plugins
• Use the HTML Wrappers to add:– Shopping cart – Inventory integration– Virtual post cards– Print services
![Page 20: Introduction to Gallery](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/20.jpg)
Strengths
• Lightweight
• Easy to install
• Works in most environments
• Uncluttered interface
• Feature rich
• Good support community
![Page 21: Introduction to Gallery](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/21.jpg)
Weaknesses
• Performance degrades in large Galleries
• Reliability issues– greatly improved in newer versions
• No Internationalization
• No Templates
• Concurrency Problems
![Page 22: Introduction to Gallery](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/22.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/23.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062723/5681402e550346895dab8f15/html5/thumbnails/24.jpg)
Questions