Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

50
Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design

Transcript of Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Page 1: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Chapter 6Images in Dreamweaver &

Fireworks

Mrs. Johnson

Web Design

Page 2: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

File Formats

Images on Web pages are usually GIF or JPG because these formats are widely supportedGIF formats are best used with graphics that do not contain many colors, such as clipart or logos. They are limited to 256 colors.JPG formats supports millions of colors and is best used for photographs.

Page 3: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

File Formats

PNG format was created in the mid-1990’s during a controversy over copyright of the GIF format.

Has some advantages over GIF & JPG and is more widely accepted than it used to be

Page 4: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Both GIF & JPG formats are bitmap graphics, which are based on rows & columns of tiny dots that are square in shape.

Each square is called a pixel

Page 5: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

The number of dots per inch (dpi) is called the resolution. The larger the number of dpi, the better the quality of the graphic.

GIF format allows one color in the graphic to be chosen as the transparent color, you can’t do this with a JPG. You’d use this feature to make the background transparent, so it wouldn’t show a white edge on a colored background

Page 6: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

GIF

Interlaced means that a low resolution version of the graphic appears first and becomes clearer in four horizontal passes as the Web page loads. This is available with GIF files

Compression is a file format feature that reduces file size, which means the file will load faster.

Page 7: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

GIF

GIF graphics are compressed, but retain all of the original information, which is called lossless compression.

Page 8: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

JPG

JPG graphics - the compression is lossy, which means that some data in the file is lost or removed in order to reduce the file sizeThe more compression, the smaller the file, but the lower the image qualityJPG files can be progressive, which is similar to an interlaced GIF

Page 9: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

JPG Compression

Page 10: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Alternative Text

Images may not be seen by all users. This may be because of a slow modem connected, and therefore they turn the images off.By adding alternative text, it will tell the user what was suppose to appear. You can also add a “screen tip” that appears over the image to tell the user what it is.

Page 11: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Adding Alt. Text

1. Select the image on the Web page document

2. Type the text in the Alt box in the Property Inspector

Page 12: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Graphic Hyperlinks

You can make an image a hyperlink too. A graphic hyperlink does not change to blue & underlined. It will have a hand appear over it when the mouse goes across it.

Create the same way as a text hyperlink. Select the picture and then type the address or find the web address to link it to.

Page 13: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Change hyperlinks

Links are modified or deleted by selecting Modify/Change Link

OR Modify/Remove Link

Page 14: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Image Maps

An image map is a graphic that contains one or more hotspots.

A hotspot is an invisible, defined area on a graphic that is a hyperlink. Just like a graphic hyperlink, when the pointer is moved over a hotspot on an image it changes to a hand.

Page 15: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Image Maps

When you make image maps, it is a good idea to add the screen tip, so the user knows if he/she clicks on this picture, it will take them to this certain page.

Page 16: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Creating an Image Map

1. Select the picture to display the Image properties in the Property Inspector

2. You will name your hotspot in the Map box; and you will select your hotspot tool (either a rectangle, oval or polygon)

3. Once you select your shape, you will place the cursor over the image until you see the crosshairs, you can begin to draw your shape over the hotspot.

Page 17: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Creating an Image Map

To draw with the Polygon, you will click to create the corner points of a shape. With each click, the area between is filled in. Double-clicking will finish the hotspot.

Remember to add the alternative text after you have the hotspot finished

Add the hyperlink in the Link box

Page 18: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Spacer GIF

Is a transparent GIF image that consists of only 1 pixel. Transparent means that it is not visible in a browser window

It’s used to control the layout of a table by forcing table cells to a specified width

Insert the spacer.gif in a cell and change the width of the image to the minimum that the cell should be if the browser window is resized

Page 19: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Aligning an Image

Select the image and either select:• Left

• Center

• Right

From the Property inspector

Page 20: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Resizing an Image

First resize in the webpage to get exact dimensions in pixels

Then open Fireworks to edit

If you don’t resize in Fireworks, the image has not been properly resampled (changes the size of the file and adjusts the pixels in the image)

Page 21: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Changing image size in Dreamweaver

Click the image once

Drag the corner handle while holding the SHIFT key

The shift key allows the width & height to remain in the same ratio, preventing distortion

Quality of images decrease if you make the image larger than the original (don’t do that)

Page 22: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Mistakes

On the property inspector, choose RESET SIZE to return an image to its original dimensions (image must be selected)

Page 23: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Fireworks

Page 24: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Edit a resized image in Fireworks

Once a image has been resized, select COMMANDS/OPTIMIZE IMAGE IN FIREWORKS

This opens the Fireworks program

Click the FILE tab and click UPDATE to change the image to the new dimension

Save

Page 25: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Fireworks

Used to edit images

Fireworks documents are PNG files, which can be exported in the file format of your choice (JPG, GIF)

Page 26: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

File/New

Canvas is the rectangular area in which image will be created

Width/height usually in pixels

Resolution should be 72 pixels/inch

GIF support transparent backgrounds, JPG’s

do not

Page 27: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Tools Panel

Select section – to select the image

Bitmap section – to adjust/change image

Vector section – tools used to draw vector images (vector graphic is composed of lines connected by points)

Page 28: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

SAVING

To save, Fireworks automatically will only save as a PNG file, to change to a JPG or GIF:File/Export PreviewChoose your format and click Export

Page 29: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Drawing objects in Fireworks

Select the tool from the Vector sectionDrag the toolTo change colors, stroke color (line color) or the tip size (thickness) use the Property InspectorPolygons – in the shape it can be either polygon or star – number or sides and degrees of Angle can be decided

Page 30: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Resizing objects

Use the W (width) and H (height) boxes in the Property Inspector ORRectangle is resized by selecting the pointer tool ( ) and dragging a corner handle of the rectangle. Holding the shift key will keep the W & H the sameSelect the scale tool and click an object in the canvas to display handles, drag a corner to resize the shape in proportion; drag a size handle distorts the shape

Page 31: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Add Text

Click the Text Tool (A) from tools panel

Click on canvas and type

Formatting features

Page 32: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

text

When dragging a corner handle the text block is changed to a fixed width block, which means it will no longer change size as more text is typed

Page 33: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Aligning objects

Objects can be aligned with respect to each other by first selecting the objects and then selecting commands in the MODIFY menu

To select multiple files, use the Pointer tool (black arrow) and draw a rectangle around the objects

Example) Modify/Align/Center Vertical

Page 34: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Modifying the canvas

Modify/Canvas/Trim Canvas will reduce the canvas to exactly fit the objects

Modify/Canvas/Fit Canvas increases the size of the canvas enough to fit all the objects

Page 35: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Optimizing & Exporting

Before exporting objects to GIF or JPG, you need to optimize the objectOptimizing means to choose a graphic file format that has as much compression as possible while maintaining good image quality, this also helps to create the smallest possible file for faster loadingUse the File/Export Wizard

Page 36: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.
Page 37: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Creating a button symbol

Button is an element that indicates to the user that it is a graphic hyperlink

First create the rectangle or objects that make up a button

Select all objects and select MODIFY/SYMBOL/CONVERT TO SYMBOL and choose Button

Page 38: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Buttons

When a symbol is created, the objects on the canvas are changed into an instance of the symbol, which is a copy of the button symbol

Slicing – is the way fireworks divides an image so that interactivity can be assigned

Page 39: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Cloning

Nav bars have more than one button

Drag the buttons from the library OR select the object and click EDIT/CLONE

Page 40: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Button Editor Window

Page 41: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

After a button has been selected, you can change the text, add a link and add a Alternate message (ALT)

Page 42: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Button symbol rollover behavior

Behavior is how a symbol interacts with the user

Rollover – default behavior for a button, which allows each state of a button symbol to display a different image

4 states:1. Up state – normal state,

button is in this state when pointer is not over it

2. Over state – pointer moved over button

3. Down state – button is clicked

4. Over while down state – pointer moved over a button that is in the down state

Page 43: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Exporting HTML & Images

Exporting fireworks documents with symbol instances generates many files, including a set of image files for rollovers and an HTML file that arranges the objects in the Fireworks documents in a table

Example) fireworks document with a button symbol and three clones generates an HTML document and up to 12 image files, one image file for each state of each button instance

Page 44: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Use export wizards to optimize and automatically generate all the files associaited with a fireworks document

FILE/EXPORT WIZARD

Page 45: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

A fireworks document exported as HTML and Images to a Dreamweaver site is used by:

1. Open the HTML document that was exported from Fireworks

2. Select <body> in the tag selector to select everything in the document

3. Edit/Copy4. Open a web page and place the cursor where you

want the document5. Edit/Paste

Page 46: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Edit picture made in Fireworks from Dreamweaver, click the EDIT button on the Property Inspector

The PNG file that was created is opened, after edits are made and the PNG is saved, selecing DONE will close the file and automatically changed in Dreamweaver

Page 47: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Changing Behaviors in Dreamweaver

DESIGN PANEL – select the behaviors tab

Double-click any behavior listed

You can change the image, link, down image, over image, etc

Page 48: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Cropping images

Cropping means to remove parts of an imageSelect the crop toolDrag it over the image that you want to keepDouble-click the selected area to crop the image

Page 49: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Cropped image example

Page 50: Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.

Edit other images

Select image

Choose EDIT from the property inspector