|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Chapters
Services
Feature Zones
|
IntroductionThe Image Browser works by dynamically displaying the images in a directory, while caching them. It also caches a version of the picture that is more web friendly - I have made it 640X480. I found an algorithm from Christian Graus at CodeProject. OverviewThere are 2 controls, one that displays the thumbnails for the directories and images, and one to show the web friendly image. It works by pointing the image browser to a directory, and it will analyze the directory for subdirectories and images, and create a navigable control from that. Subdirectories will be represented with a folder icon or a picture if you name it the same as the directory. It may be clicked on to navigate to that directory. Thumbnails will be created from all the images, and placed in a thumbs directory. Clicking in one will bring you to the The A top navigation with links is also rendered. Interesting bitsI created some helper classes to break out the functions of creating a website out of a directory tree of images. The break down was like so:
The Requirements
Simple setupDownload the above zip file and unzip it to your wwwroot directory, i.e. C:\Inetpub\wwwroot\ (Not ImageBrowser, the directory will be created). Put your pictures into C:\InetPub\wwwroot\pics. Open IIS Manager and right-click on the ImageBrowser directory, and click properties. On the 'directory' tab, click 'create' in the applications setting area. NotesTo display a directory as an image instead of the default image, name an image the same as the directory (inside it).
DownloadsNote: I have updated the source to fix the reported bugs and feature requests. BEWARE: Use the FillCache.aspx page at your discretion.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||