13web PhotoShop Web Gallery

Dreamweaver Version: MX

 

Creating Web photo galleries (Photoshop)

 

You use the Web Photo Gallery command to automatically generate a Web photo gallery from a set of images. A Web photo gallery is a Web site that features a home page with thumbnail images and gallery pages with full-size images. Each page contains links that allow visitors to navigate the site. For example, when a visitor clicks a thumbnail image on the home page, a gallery page with the associated full-size image loads.

    Web photo gallery home page and loaded gallery page

Photoshop provides a variety of styles for your gallery, which you can select using the Web Photo Gallery command. If you are an advanced user who has knowledge of HTML, you can also customize a style by editing a set of HTML template files or create a new style.

To create a Web photo gallery:

  1. Choose File > Automate > Web Photo Gallery.
  2. Under Site, do the following:
  1. Under Folders, do the following:
  1. To set options for the banner that appears on each page in the gallery, choose Banner from the Options pop-up menu. Then do the following:
  1. To set options for the gallery pages, choose Large Images from the Options pop-up menu. Then do the following:
  1. To set options for the home page, choose Thumbnails from the Options pop-up menu. Then do the following:
  1. To set options for colors of elements in the gallery, choose Customize Colors from the Options pop-up menu. To change the color of a particular element, click its color swatch, and then select a new color using the Color Picker. The Background option lets you change the background color of each page. The Banner option lets you change the background color of the banner.
  2. To set options to display text to appear over each image as an anti-theft deterrent, choose Security from the Options pop-up menu. Then do the following:

Photoshop places the following HTML and JPEG files in your destination folder:

 

About Web photo gallery styles

The Web photo gallery styles provided by Photoshop are stored in individual folders in the following location:

Windows:

Program Files/Adobe/Photoshop 7.0/Presets/WebContactSheet

Mac OS:

Adobe Photoshop 7.0/Presets/WebContactSheet

The name of each folder in this location appears as an option in the Styles pop-up menu in the Web Photo Gallery dialog box. Each folder contains the following HTML template files, which Photoshop uses to generate the gallery:

Caption.htm

Determines the layout of the caption that appears below each thumbnail on the home page.

FrameSet.htm

Determines the layout of the frame set for displaying pages.

IndexPage.htm

Determines the layout of the home page.

SubPage.htm

Determines the layout of the gallery pages with full-size images.

Thumbnail.htm

Determines the layout of the thumbnails that appear on the home page.

Each template file contains HTML code and tokens. A token is a text string that is replaced by Photoshop when you set its corresponding option in the Web Photo Gallery dialog box. For example, a template file may contain the following TITLE element that uses a token as its enclosed text:

<TITLE>%TITLE%</TITLE>

When Photoshop generates the gallery using this template file, it replaces the token %TITLE% with the text that you entered for Site Name in the Web Photo Gallery dialog box.

To better understand an existing style, you can open and study its HTML template files using an HTML editor. Because only standard ASCII characters are required to create HTML documents, you can open, edit, and create these documents using a plain-text editor such as Notepad (Windows) or SimpleText (Mac OS).

Customizing Web photo gallery styles

You can customize an existing Web photo gallery style by editing one or more of its HTML template files. When customizing a style, you need to follow these guidelines so that Photoshop can generate the gallery correctly:

    The style folder must contain these files: Caption.htm, IndexPage.htm, SubPage.htm, Thumbnail.htm, and FrameSet.htm.
    • You can rename the style folder but not the HTML template files in the folder.
    • You can have an empty Caption.htm file, and place the HTML code and tokens determining the layout of the caption in the Thumbnail.htm file.
    • You can replace a token in a template file with the appropriate text or HTML code, so that an option is set through the template file rather than through the Web Photo Gallery dialog box. For example, a template file may contain a BODY element with the following bgcolor attribute that uses a token as its value:

    bgcolor=%BGCOLOR%

    To set the background color of the page to red, you can replace the token %BGCOLOR% with "FF0000."

    • You can add HTML code and tokens to the template files. All tokens must be in uppercase characters, and begin and end with the percent (%) symbol.

To customize an existing Web photo gallery style:

  1. Locate the folder for the Web photo gallery style that you want to customize.
  2. If you don't want to overwrite an existing style, create a copy of the style folder, and store it in the same location on your hard drive as the existing style folders.
  3. Using an HTML editor, open one of the HTML template files located inside the style folder.
  4. Customize the HTML template file using the guidelines for customization outlined in this section, and save the file.
  5. Repeat steps 2, 3, and 4 to customize other HTML template files in the style folder.
  1. When you have finished, you can create a gallery using the customized style. The customized style appears as an option in the Styles pop-up menu in the Web Photo Gallery dialog box

Creating new Web photo gallery styles

You can create a new Web photo gallery style by creating the necessary HTML template files that are used by Photoshop to generate a gallery.

To create a new Web photo gallery style:

Locate the folder that stores the existing Web photo gallery styles.

Create a new folder for the new style, and store it in the same location on your hard drive as the existing style folders.

Using an HTML editor, create the necessary HTML template files and store them inside the style folder. When creating the template files, make sure that you follow the guidelines for customization outlined in Customizing Web photo gallery styles above.

When you have finished, you can create a gallery using the new style. The new style appears as an option in the Styles pop-up menu in the Web Photo Gallery dialog box.

Back to Dreamweaver Home Page