Adobe
Products
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Student and Teacher Editions
More products
Solutions
Creative tools for business
Digital marketing
Digital media
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Buy
Home use for personal and home office
Education for students, educators, and staff
Business for small and medium businesses
Licensing programs for businesses, schools, and government
Special offers
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
My products and services
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out My orders My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / Dreamweaver Developer Center /

Working with images in Dreamweaver CS4

by Sheri German

Sheri German
  • Community MX

Content

  • Setting the stage
  • Using a Photoshop Smart Object to create a site banner
  • Roundtripping between Fireworks and Dreamweaver

Modified

27 October 2008

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
design Dreamweaver CS4 Fireworks CS4 image editing Photoshop CS4 website workflow

Requirements

Prerequisite knowledge

Working knowledge of Dreamweaver, Fireworks, and Photoshop.

User level

Beginning

Required products

  • Fireworks (Download trial)
  • Dreamweaver (Download trial)
  • Photoshop (Download trial)

Sample files

  • birdland_sample.zip (3996 KB)

Note: This tutorial was written for Creative Suite 4. Although the screenshots may differ from what you see on your screen, the content is still valid for Creative Suite 5.

Birdland is a famous jazz club in New York City, but it is also a playground and fictitious site for my son Scotty, an amateur ornithologist, and my sister Jillian Kossin of Jillian Photography, a professional photographer who took the bird images used to create the site.

In this tutorial I will show you how to use the Fireworks and Photoshop image editing integration tools in Dreamweaver using the Birdland website as an example. You can download the support files and follow along to create the design for the website.

Setting the stage

Figure 1 shows the Birdland site in its original form; Figure 2 shows the site after I used Photoshop and Fireworks to "jazz" it up.

The original Birdland website.
Figure 1. The original Birdland website.
The Birdland website after I jazzed it up.
Figure 2. The Birdland website after I jazzed it up.

Before delving into the Birdland project, you will want to set the stage for the application. In this section of the tutorial you will perform the following tasks:

  • Specify editors for various file types in Dreamweaver
  • Set up a Dreamweaver site definition

Specify editors for various file types in Dreamweaver

Dreamweaver lets you choose the external application that it will automatically launch when you click on files of a compatible type in the Dreamweaver Files panel. To specify which file types you want to associate with a specific tool, follow these steps:

  1. Choose Dreamweaver > Preferences (Mac), or Edit > Preferences (Windows).
  2. Under Category, choose File Types > Editors (see Figure 3).
The File Types / Editors Preferences dialog box on a Mac.
Figure 3. The File Types / Editors Preferences dialog box on a Mac.
  1. Select any image extension, such as .png, .jpg, or .jpg in the Extensions list.
  2. Select an application in the Editors column. (Dreamweaver is smart about locating appropriate image editing applications, but you can also click the plus (+) button to navigate to other applications and add them.)
  3. Click the Make Primary button to set the application as the default.
  4. Repeat steps 3 through 5 for each extension you want to set up. If you do not see a particular extension in the list, you can click the plus button (+) to add it.

Set up a Dreamweaver site definition

The first step in setting up a new site in Dreamweaver is to create a site definition. This allows Dreamweaver to manage files and helps you use its productivity features, including image editing.

  1. Choose File > New Site.
  2. Click the Advanced tab in the Site Definition dialog box (see Figure 4).
Setting up the site definition for the Birdland site.
Figure 4. Setting up the site definition for the Birdland site.
  1. In the Site Name field type Birdland.
  2. For the Local root folder, click the Browse button and navigate to where you want to save the files for the Birdland site.
  3. Create a new folder named Birdland.
  4. Click Choose (Mac), or click Open and then Select (Windows).
  5. Click OK.
  6. If you haven't already done so, download the support files for this tutorial.
  7. Locate the starter_files folder and copy the images and index.html file inside it to the Birdland folder you designated as the local root folder of the Birdland site.

Note: For more information on setting up a site, refer to the Dreamweaver online help.

Using a Photoshop Smart Object to create a site banner

Let's start jazzing up Birdland by adding the banner graphic. You will use a Photoshop (PSD) file that Dreamweaver will turn into a Smart Object when you insert it and optimize it on the page. A Smart Object retains its connection to the source and allows you to quickly update multiple instances of the source document when you modify the original.

Add the Photoshop Banner

In the following steps, you will insert a Photoshop document, optimize it for the Birdland page, make an edit to the original, and then update the instance on the page.

  1. Open index.html.
  2. Click in the black rectangle beneath the header title in Design view (see Figure 5).
  3. Click the Split View button in the Document window and make sure your cursor is between the opening and closing strap div tags.
Use Split View to verify the insertion point.
Figure 5. Use Split view to verify the insertion point.
  1. Choose File > Insert.
  2. Navigate to birdland.psd in the source_files folder.

    Note: You might want to take a moment to look at the original Photoshop file. It has five layers, four of which are photographs of birds that could be refreshed every so often with new bird images. The bottom layer is a background layer that can change colors, a task you will perform later in this tutorial.

  3. In the Alternative Text dialog box, type Birdland.
  4. Dreamweaver opens Image Preview (see Figure 6).
The Image Preview dialog box in Dreamweaver.
Figure 6. The Image Preview dialog box in Dreamweaver.
  1. In the Options panel, set the image format to JPG and the quality to 80%. The File tab provides settings for adjusting the image size and export area, but you can use the defaults for this image (see Figure 7).
You can crop and size images using the File panel settings.
Figure 7. You can crop and size images using the File panel settings.
  1. Click OK. The image displays on the page and has a Smart Objects icon to show that it is linked to an original PSD file (see Figure 8).
The linked image has a Smart Object icon that indicates the image is either in sync or out of sync with the original
Figure 8. The linked image has a Smart Object icon that indicates the image is either in sync or out of sync with the original
  1. Pass your mouse over the Smart Objects icon and you will see a tooltip that assures you that the image is synced to the original.

    Looking over the page, I wonder whether the borders between the bird images might look nicer if they were black rather than white. Let's test that out now.

  2. Right-click on the birdland image and choose Edit Original With > Photoshop CS4 (see Figure 9). (Your menu may be different depending on what image editing applications you have on your computer.)
One way to edit the instance from the original is to right-click and choose Edit Original With.
Figure 9. One way to edit the instance from the original is to right-click and choose Edit Original With.
  1. When the original PSD file opens, select the background layer in the Layers panel (see Figure 10).
The modified color of the background layer.
Figure 10. The modified color of the background layer.
  1. Choose Edit > Fill.
  2. In the Fill dialog box, select Black from the Use pop-up menu under Contents.
  3. Click OK.
  4. Save the Photoshop file and return to the Birdland page in Dreamweaver. You'll notice a new icon in the left top corner of the image. The red and gray arrows alert you to the fact that the image is no longer synced with the original (see Figure 11).
The Smart Object icon now shows that the instance is no longer synced to the original.
Figure 11. The Smart Object icon now shows that the instance is no longer synced to the original.
  1. Right-click on the Birdland image and choose Update From Original (see Figure 12).
Right-click and select Update From Original.
Figure 12. Right-click and select Update From Original.

Alternatively, you can use the Photoshop icons in the Property inspector to perform the update and other integration tasks (see Figure 13).

The Property inspector has icons that you can use to perform image editing tasks.
Figure 13. The Property inspector has icons that you can use to perform image editing tasks.

    Dreamweaver updates the image so that it is in sync with the original. The synced Smart Objects icon returns.

Figure 14 shows the the completed banner.

The completed banner.
Figure 14. The completed banner.

Copy and paste from Photoshop

You can also copy and paste an individual layer or group of layers from a Photoshop document. Perhaps you want to turn each of the individual bird layers into separate bird icons to place next to a paragraph about each bird, or maybe you want to create a graphic that includes two of the birds.

In this latter case, draw a selection marquee around two of the birds in Photoshop, choose Edit > Copy Merged (so that Photoshop copies multiple layers), and paste the layers at the insertion point in Dreamweaver (see Figure 15). Dreamweaver opens its Image Preview dialog box where you can set an image format and size for the new graphic. The pasted graphic does not wear the Smart Object icon, but it does remain connected to the original. You can click the Photoshop editing icon in the Property inspector to launch Photoshop to edit the original.

If you select one layer in Photoshop, choose Edit > Copy; if you select two or more, select Edit > Copy Merged.
Figure 15. If you select one layer in Photoshop, choose Edit > Copy; if you select two or more, select Edit > Copy Merged.

Roundtripping between Fireworks and Dreamweaver

You are going to use Fireworks for the next integration task.

First take a moment to examine the options in the Dreamweaver Property inspector (see Figure 16). The first thing you will notice is that next to the Fireworks Edit icon you'll see the same options that were available for the Photoshop icon: An Edit Image Settings icon that opens the Image Preview dialog box, and an Update from Original icon that will let you quickly update an instance after you modify the original.

You'll also notice additional icons that let you perform basic image editing tasks such as Crop and Sharpen. I'll return to those a little later.

Fireworks options in the Dreamweaver Property inspector
Figure 16. Fireworks options in the Dreamweaver Property inspector.

Export the egret from Fireworks

In the next steps, you'll open a PNG file in Fireworks and use the Export Wizard to export the image as a JPG.

  1. In Fireworks, open the Preening.png file in the source_files_start folder.
  2. Choose File > Export Wizard (see Figure 17).
You can use the Export Wizard to analyze and export an image.
Figure 17. You can use the Export Wizard to analyze and export an image.
  1. Click Select an export format (see Figure 18).
Click Select an export format.
Figure 18. Click Select an export format.
  1. Click Continue.
  2. On the next screen the default setting is The Web. Click Continue.
  3. Fireworks analyzes the image and displays the format options for your image. Click Exit.
  4. Fireworks displays previews of your choices so that you can compare them and make your selection. Select JPEG as the format (see Figure 19).
Fireworks offers image format options that you can customize.
Figure 19. Fireworks offers image format options that you can customize.
  1. Click the File tab.
  2. In the Width field, type 300. Fireworks will automatically set the height in proportion, as long as you have Constrain selected (see Figure 20).
Size the image by using the File tab of the Image Preview dialog box.
Image 20. Size the image by using the File tab of the Image Preview dialog box.
  1. Click Export.
  2. Navigate to the images folder of the Birdland site.
  3. In Dreamweaver, place your insertion point in front of the paragraph of text under "About Jillian, the Photographer" (see Figure 21).
Place the cursor in front of the first paragraph of text under "About Jillian, the Photographer".
Figure 21. Place the cursor in front of the first paragraph of text under "About Jillian, the Photographer".
  1. Choose Insert > Image.
  2. Navigate to Preening.jpg in the images folder of the Birdland site.
  3. For the alt text, type Egret preening.
  4. With the image still selected, choose left from the Class popup menu in the Property inspector. This will apply a left float to the image so that the text wraps around it (see Figure 22).
After inserting the image, apply the left floating class.
Figure 22. After inserting the image, apply the left floating class.

Note: When you choose File > Export, you'll find many additional options in the Export popup menu. You can export to an Adobe PDF, a Dreamweaver Library item, HTML and images (which reconstitutes the composite graphic into a table-based layout, a legacy workflow), or CSS and images (see Figure 23).

Options under the Export command.
Figure 23. Options under the Export command.

Edit the egret image in Fireworks

The image of the egret needs a little work: its dominance throws off the overall balance of the design (see Figure 24). In examining the preening egret, you decide that perhaps it would benefit from an auto vector mask.

The egret could use an auto vector mask.
Figure 24. The egret could use an auto vector mask.
  1. In Dreamweaver, make sure the egret is still selected.
  2. Click the Fw editing icon in the Property inspector.
  3. Dreamweaver displays a dialog box that asks you if you want to use a source PNG or edit the JPG file directly (see Figure 25).
Dreamweaver asks if you want to use this file or the original PNG.
Figure 25. Dreamweaver asks if you want to use this file or the original PNG.
  1. Click Use a PNG.
  2. Navigate to the Preening.png file in the source_images folder of your Birdland site and select it.
  3. With the original PNG open in Fireworks, choose Commands > Creative > Auto Vector Mask (see Figure 26).
Adding an auto vector mask to the egret.
Figure 26. Adding an auto vector mask to the egret.
  1. Select the left bottom option under Shapes (see Figure 27).
Select the bottom left option under Shapes.
Figure 27. Select the bottom left option under Shapes.
  1. Click Apply. Fireworks creates a soft mask on the egret (see Figure 28).
A soft vector mask.
Figure 28. A soft vector mask.
  1. Click Done and the original PNG will be modified.
  2. In Dreamweaver, restore the class that positions the image to the left of the text by selecting left from the Class popup menu in the Property inspector.

The connected image is larger than needed, but rather than return to Fireworks or the Image Preview dialog box for adjustments, you can use one of the Property inspector's quick and easy editing icons to fix the problem.

  1. Select the image. Hold down the Shift key as you click the right bottom corner, then drag inward to resize the egret image until its width is about 300 pixels (see Figure 29). The width field in the Property inspector will change dynamically as you drag the corner of the image.
Drag the image to 300 pixels and then click the Resample button to resize the actual image to the new dimensions.
Figure 29. Drag the image to 300 pixels and then click the Resample button to resize the actual image to the new dimensions.

Note: Dreamweaver writes a new height and width into the code, but the actual image still has the same set of dimensions and same larger file size. To match the actual image with the dimensions in the code, click the Resample icon in the Property inspector.

  1. With the image selected, click the Resample icon now. Dreamweaver warns you that this will permanently alter the image (see Figure 30). In this case there are no worries; the image is connected to an original, and if you change your mind later, you can always generate a new image from it later.
Dreamweaver warns you that what you're about to do is destructive to the pixels in the image.
Figure 30. Dreamweaver warns you that what you're about to do is destructive to the pixels in the image.

With the Property inspector you can perform other basic editing tasks to the image. By selecting the image and clicking the various icons, you can crop, adjust brightness and contrast, and sharpen an image right from Dreamweaver.

  1. Select the Crop icon to crop to a specific area within the image (see Figure 31).
Click the Crop icon to crop the image.
Figure 31. Click the Crop icon to crop the image.
  1. Select the Brightness and Contrast icon to adjust how these properties affect the highlights, shadows, and midtones so that there is a better balance of light and dark in the image (see Figure 32).
Adjust brightness and contrast.
Figure 32. Adjust brightness and contrast.
  1. Select the Sharpness icon to sharpen the image (see Figure 33). The scanning process naturally softens edges in an image, and sharpening increases the contrast around the edges.
Sharpen the image.
Figure 33. Sharpen the image.

Take a minute to play with these image editing tools to tweak the egret image in the Birdland design.

That's it. Using the round-trip features between Dreamweaver and Fireworks and between Dreamweaver and Photoshop, you've quickly created a jazzier Birdland design.

Where to go from here

For more details on how to integrate Dreamweaver with Photoshop, Fireworks, and other applications, see Working with other applications in Using Adobe Dreamweaver CS4. Also refer to the following resources:

  • Fireworks workflow videos
  • Learn Dreamweaver CS4 videos
  • Dreamweaver Help and Support

More Like This

  • Turning a design into HTML and CSS using the Fireworks to Dreamweaver workflow – Part 1: Exporting the design
  • Turning a design into HTML and CSS using the Fireworks to Dreamweaver workflow – Part 2: Modifying the HTML and CSS
  • Styling and inserting a Spry Menu Bar 2.0 widget with the Adobe Widget Browser
  • Simple styling with CSS
  • Using Subversion with Adobe Dreamweaver CS5 – Part 2: Configuring Dreamweaver to use Subversion
  • Using Subversion with Dreamweaver CS5 – Part 3: Configuring Apache with Subversion support
  • Code editing in Dreamweaver
  • From table-based to tableless web design with CSS – Part 1: CSS Basics
  • Creating your first website – Part 3: Adding content to pages
  • Creating your first website – Part 4: Adding the main image text

Tutorials and samples

Tutorials

  • Understanding HTML5 semantics: Changed and absent elements
  • Mobile app with PhoneGap: Submitting to the Apple App Store
  • PhoneGap and Dreamweaver: Releasing on iOS
  • Mobile app with PhoneGap: Submitting to Android Market

Samples

  • Responsive design with jQuery marquee
  • Customizable starter design for jQuery Mobile
  • Customizable starter design for HTML5 video
  • Customizable starter design for multiscreen development

Dreamweaver user forum

More
04/23/2012 Resolution/Compatibility/liquid layout
04/20/2012 using local/testing server with cs5 inserting images look fine in the split screen but do not show
04/18/2012 Ap Div help
04/23/2012 Updating

Dreamweaver Cookbook

More
11/07/2011 Simple social networking share buttons
09/20/2011 Registration form that will generate email for registrant to validate
08/21/2011 Spry Accordion - Vertical Text - Auto Start on Page Load - Mouse Over Pause
08/17/2011 Using cfdump anywhere you like

Products

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Mobile Apps
  • Photoshop
  • Touch Apps
  • Student and Teacher Editions

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • For personal and home office
  • For students, educators, and staff
  • For small and medium businesses
  • For businesses, schools, and government
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy Policy and Cookies (Updated)

Ad Choices

Reviewed by TRUSTe: site privacy statement