Dreamweaver CS4 Resources
|
Visually resize an image
You can visually resize elements such as images,
plug‑ins, Shockwave or SWF files, applets, and ActiveX controls
in Dreamweaver.
Visually
resizing an image helps you see how the image affects the layout
at different dimensions but it does not scale the image file to
the proportions that you specify. If you visually resize an image
in Dreamweaver without using an image-editing
application (such as Adobe Fireworks) to scale the image file to the
desired size, the user’s browser scales the image when the page
is loaded. This might cause a delay in page download time and the
improper display of the image in the user’s browser. To reduce download
time and to ensure that all instances of an image appear at the
same size, use an image-editing application to scale images.
When
you resize an image in Dreamweaver, you can resample it
to accommodate its new dimensions. Resampling adds or subtracts
pixels from a resized JPEG and GIF image files to match the appearance
of the original image as closely as possible. Resampling an image
reduces its file size and improves download performance.
Visually resize an element- Select the element (for example, an
image or SWF file) in the Document window.
Resize
handles appear at the bottom and right sides of the element and
in the lower-right corner. If resize handles don’t appear, click
somewhere other than the element you want to resize and then reselect
it, or click the appropriate tag in the tag selector to select the
element.
- Resize the element by doing one of the following:
To adjust the width of the element, drag
the selection handle on the right side.
To adjust the height of the element, drag the bottom
selection handle.
To adjust the width and the height of the element
at the same time, drag the corner selection handle.
To
preserve the element’s proportions (its width-to-height ratio) as
you adjust its dimensions, Shift-drag the corner selection handle.
To adjust the width and height of an element to
a specific size (for example, 1 x 1 pixel), use the Property inspector
to enter a numeric value. Elements can be visually resized to a
minimum of 8 x 8 pixels.
- To return a resized element to its original dimensions,
in the Property inspector, delete the values in the W and H text
boxes, or click the Reset Size button in the image Property inspector.
Revert an image to its original size Click the Reset size button in
the image Property inspector.
Resample a resized image- Resize
the image as described above.
- Click the Resample button
in
the image Property inspector. Note: You cannot resample image placeholders or elements other
than bitmap images.
|