

Best of All Worlds: Using Dreamweaver CS3,
Photoshop CS3 and SiteAssist Together
by Joseph Lowery
featured extension:
featured book:
for sales questions:
Email sales@webassist.com
U.S.
Monday - Friday, 9AM - 5PM PST
800.886.0130 Option 2
Europe
Monday - Friday, 9AM - 5PM GMT
+44 (0) 170.453.3838
Outside U.S. and Europe
Monday - Friday, 9AM - 5PM PST
+1.760.633.4013 Option 2
Imagine what it would be like if your two best friends—who had always hated one another—suddenly started getting along. Better yet, they have become best friends as well! With the release of Adobe Creative Suite 3, you don't have to imagine any more. Now you combine the image manipulation power of Photoshop with the Web authoring skills of Dreamweaver, seamlessly.
In this article, you'll learn how to apply the new power duo of Dreamweaver and Photoshop when customizing Web pages built in SiteAssist. The same techniques covered here can be put to use in any situation that calls for working with Dreamweaver and Photoshop.

Inserting Photoshop files
One of the biggest changes in Dreamweaver CS3 is the ability to open Photoshop PSD files. Like Firework's PNG files, the Photoshop PSD is a graphics source file and is not suitable for the direct viewing on the Web. To convert a Photoshop file to one that is Web-ready, Dreamweaver automatically displays the Image Preview dialog box—which can optimize the file and save it in a JPEG, GIF or PNG format.
Let's say that you want to use a new logo header created in Photoshop as your SiteAssist logo graphic. First, you'll need to make sure that the dimensions of your replacement image are suitable. In this example, the Product design is used, which has an overall width of 760 pixels and the Photoshop image fits perfectly with a width of 753 pixels.
Note: Naturally, if you needed to modify the width of the design, you could easily do so. As with all SiteAssist CSS changes, it's always best to insert your style changes into the my_styles.css file. The my_styles.css file is not re-generated or otherwise changed when the SiteAssist wizard is run, thus allowing you to maintain any altered style rules.
- Run the SiteAssist wizard as you would normally.
- Click the folder icon next to the Logo field.
- Locate your Photoshop source file and click OK.
The Image Preview dialog includes three tabs: Options, File and Animations. The Options tab is the primary interface for selecting your image's final format; you can choose from GIF, JPEG or PNG. Each format offers a full slate of optimizing options. You can, for example, limit the number of colors for a GIF or set the bit size for PNG files. In the current example, the Photoshop file will be saved as a JPEG.
- From the Format list, choose JPEG.
- Set the Quality slider to an appropriate value.
- Click OK when you're ready.
- In the Save Web Image dialog box, navigate to the desired folder in your site and enter a proper name in the File name field. Click Save.
- Continue to complete the SiteAssist wizard.
You'll notice that the Photoshop image is now incorporated throughout the wizard preview.
Your Photoshop-created, Dreamweaver imported logo is now in place, throughout all your SiteAssist created pages.
Working with Photoshop Selections
You don't always have to include a complete PSD file; with Dreamweaver CS3, you can copy a selection in Photoshop and paste it—in a Web appropriate format—onto your Web page. Better yet, once the selection has been inserted, Dreamweaver remembers the source file and allows for updates and modifications from Photoshop.
To copy a selection from Photoshop to Dreamweaver, follow these steps:
- In Photoshop, select the image area you want to copy.
- Copy the selection to the clipboard by choosing Edit > Copy or Edit > Copy Merged.
- Optionally, choose Select > Save Selection and give your selection an appropriate name.
- Switch to Dreamweaver and place your cursor where you'd like insert your copied graphic in the SiteAssist page; press Ctrl+V (Windows) or Cmd+V (Mac) to begin the paste operation.
- Choose your format from the Options tab and make any optimization adjustments necessary; when you're done, click OK.
- In the Save Web Image dialog box, enter the path and name of your newly created file.
If you'd like to modify the pasted Photoshop image, select the image and, from the Property inspector, click the Photoshop Edit icon. The source file will re-open in Photoshop where you can make any modifications necessary. When you're done, re-select the graphic (this is where the ability to load a saved selection comes in handy) and copy to the clipboard. In Dreamweaver, with the original image selected, paste your clipboard to insert the new graphic.
About the author: Joseph Lowery is a world-renown Dreamweaver expert and author of the best-selling Dreamweaver Bible series from Wiley Publishing; his Dreamweaver CS3 Bible is now available. Joe is also Vice-President of Marketing for WebAssist; contact him at jlowery@webassist.com.








