Add a picture or image file to a Web page

You can add an image to any Web page that has a Page Image field control by picking the image from a library. When the image that is stored in the library is changed, pages that use the image automatically use the new image.

You can also add an image to any Web page that has a Page Content field control, by using the HTML Editor. When you use the HTML Editor to add an image to a Page Content field control, the image is also stored in a library, so that when the image in the library is updated, pages that use the image automatically use the new image.

When you create a new page, if you want the page to have an image, you can create the page by using a page layout that has a Page Image field control.

In this article

Page layouts that contain a Page Image field control

Page layouts that contain a Page Content field control

Add an image by using the Page Image field control

Add an image to a Page Content field control by using the HTML Editor

Page layouts that contain a Page Image field control

The following page layouts that are included with Microsoft Office SharePoint Server 2007 contain a Page Image field control:

  • Article page with image on left

  • Article page with image on right

  • Intranet Home

  • Welcome page with summary links

  • Welcome page with table of contents

  • Welcome splash page

Your site may contain additional page layouts that contain a Page Image field control.

Tip   One way that you may be able to tell whether a page has a Page Image field control is to edit the page. When you edit a page, each field control on that page displays a label. Page Image field controls on pages created by using page layouts that are included with Office SharePoint Server 2007 are labeled Page Image. This may or may not be the case for pages created by using custom page layouts that are designed by someone with Design permissions for your site. Ask your site collection administrator for more information about the custom page layouts that are available for use on your site.

Top of Page

Page layouts that contain a Page Content field control

The following page layouts that are included with Office SharePoint Server 2007 contain a Page Content field control:

  • Intranet Home

  • Welcome page with summary links

  • Welcome page with table of contents

Your site may contain additional page layouts that contain a Page Content field control.

Tip   One way that you may be able to tell whether a page has a Page Content field control is to edit the page. When you edit a page, each field control on that page displays a label. Page Content field controls on pages created by using page layouts that are included with Office SharePoint Server 2007 are labeled "Page Content". This may or may not be the case for pages created by using custom page layouts that are designed by someone with Design permissions for your site. Ask your site collection administrator for more information about the custom page layouts that are available for use on your site.

Top of Page

Add an image by using the Page Image field control

  1. Browse to the page to which you want to add an image, and then click Edit Page on the Page Editing toolbar.

    Note   If you do not see the Page Editing toolbar, on the Site Actions menu, click Show Page Editing Toolbar.

  2. In the Page Image field control, click Edit Picture. The Edit Image Properties Web Page dialog box opens.

  3. In the General section of the Edit Image Properties Web Page dialog box, click the Browse button located next to the Selected Image box. The Images library opens in a new window.

  4. Click the image that you want to use, and then click OK. The Image library closes, and the address of the image that you selected now appears in the Selected Image box.

  5. You can optionally set the remaining image properties:

    • Alternate Text      Type text that briefly describes the image. This text is displayed instead of the image if the page viewer's browser does not display the image. Alternate text is also read by screen readers.

    • Hyperlink      The image can optionally act as a hyperlink. Type the desired hyperlink target in this box. You can also use the Browse button to locate a target for the hyperlink. Select the Open This Link In New Window check box if you want the hyperlink to open in a new browser window.

      In the Layout section, you can set these properties:

    • Alignment      You can change the position of the image within the field control by choosing from the Alignment list. Since a Page Image field control is sized to fit the image, this option does not have a noticeable effect when used on an image that is in a Page Image field control.

    • Border Thickness      You can give the image a border by specifying the thickness of the border. Border thickness is measured in pixels.

    • Horizontal Spacing      You can add spacing on both sides of the image by specifying a value, in pixels, for the size of the space.

    • Vertical Spacing      You can add spacing above and below the image by specifying a value, in pixels, for the size of the space.

      In the Size section, you can set these properties:

    • Use default image size      Select this option if you want the image to appear in its default size, which is the size specified by the image file's properties.

    • Specify Size      Select this option if you want to specify the size of the image on the published page. This overrides the image file's size properties. If you select this option, you must set the width, the height, or both for the image by using the Width and Height properties.

    • Width (pixels)      If you select Specify Size, you use Width (pixels) to specify the width of the image in pixels.

    • Height (pixels)      If you select Specify Size, you use Height (pixels) to specify the height of the image in pixels.

    • Maintain aspect ratio      You can use this option to preserve the ratio of the image's width and height. If you select this option, you can only set either the width or the height of the image, because the value that you choose for the image's width or height determines the value of the other dimension based on the ratio of the original image width and height.

Top of Page

Add an image to a Page Content field control by using the HTML Editor

  1. Browse to the page to which you want to add an image, and then click Edit Page on the Page Editing toolbar.

    Note   If you do not see the Page Editing toolbar, on the Site Actions menu, click Show Page Editing Toolbar.

  2. In the Page Content field control, click Edit Content to start the HTML Editor. The HTML Editor may appear inline, or it may appear in a Web Page dialog box, in a new window.

  3. Position the cursor in the Page Content field control in the spot where you want to add the image.

  4. On the HTML Editor toolbar, click the Insert Image Button image toolbar button.

    Keyboard shortcut  To insert an image, press CTRL+SHIFT+G.

    The Edit Image Properties Web page dialog box opens.

  5. In the General section of the Edit Image Properties Web Page dialog box, click the Browse button located next to the Selected Image box. The Images library opens in a new window.

  6. Click the image that you want to use, and then click OK. The Image library closes, and the address of the image that you selected now appears in the Selected Image box.

  7. You can optionally set the remaining image properties:

    • Alternate Text      Type text that briefly describes the image. This text is displayed instead of the image if the page viewer's browser does not display the image. Alternate text is also read by screen readers.

    • Hyperlink      The image can optionally act as a hyperlink. Type the desired hyperlink target in this box. You can also use the Browse button to locate a target for the hyperlink. Select the Open This Link In New Window check box if you want the hyperlink to open in a new browser window.

      In the Layout section, you can set these properties:

    • Alignment      You can change the position of the image within the field control by choosing from the Alignment list.

    • Border Thickness      You can give the image a border by specifying the thickness of the border. Border thickness is measured in pixels.

    • Horizontal Spacing      You can add spacing on both sides of the image by specifying a value, in pixels, for the size of the space.

    • Vertical Spacing      You can add spacing above and below the image by specifying a value, in pixels, for the size of the space.

      In the Size section, you can set these properties:

    • Use default image size      Select this option if you want the image to appear in its default size, which is the size specified by the image file's properties.

    • Specify Size      Select this option if you want to specify the size of the image on the published page. This overrides the image file's size properties. If you select this option, you must set the width, the height, or both for the image by using the Width and Height properties.

    • Width (pixels)      If you select Specify Size, you use Width (pixels) to specify the width of the image in pixels.

    • Height (pixels)      If you select Specify Size, you use Height (pixels) to specify the height of the image in pixels.

    • Maintain aspect ratio      You can use this option to preserve the ratio of the image's width and height. If you select this option, you can only set either the width or the height of the image, because the value that you choose for the image's width or height determines the value of the other dimension, based on the ratio of the original image width and height.

      Notes   

      • If the page to which you want to add an image is a Web Part Page, you can add an image by using an Image Web Part. For more information on using an Image Web Part, see the article Image Web Part.

      • If the image that you want to add to a page is not available in the Image library, you can add it if you have Contribute permissions. For more information on adding an image file to a library, see the article Add one or more files to a library.

Top of Page

Applies To: SharePoint Server 2007, SharePoint Server



Was this information helpful?

Yes No

How can we improve it?

255 characters remaining

To protect your privacy, please do not include contact information in your feedback. Review our privacy policy.

Thank you for your feedback!

Support resources

Change language