answersLogoWhite

0


Best Answer

The attributes used to adjust the size at which an image is displayed on the page are the WIDTH and HEIGHT attributes.

The values for these attributes are in pixels or percentages. When percentages are used, they refer to the size of the containing element. So if we had a DIV whose width was 500 pixels, and we set an image up like so:

The image would wind up being 100px wide in the browser (500 * .2 = 100) When we leave one of the attributes out, but adjust the other, the browsers will maintain the aspect ratio of the original dimensions. This keeps us from "stretching" the image in one way or the other.

It should be noted here that if you decide that an image doesn't need to be the size of the image file for your page, you're going to want to open that file in a graphics editor and adjust it's actual dimensions. This method tells the browser how large an image will be before the image downloads, so the space can be set aside for it (it stops pages from "jumping.") It doesn't have an effect on the actual size of the image. If you can use a smaller image, you'll get a smaller file size, use less bandwidth, and make the site faster for your users.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which attributes are used to resize an image?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can I change my Photos Background and resize photo?

How can I change my Photos Background and resize photo? Answer: Use Lunapic to resize, enlarge, shrink or scale an image instantly. Use the form above to choose a image file or URL. After uploading, choose the width or height of the image. You can also drag the corners of the image to resize it. In the future, use the menu above Edit -> Resize Image.


How do you resize photo for printing?

As usual, Image > Image Size but pay attention on image resolution.


What is interpolation in image processing?

you resize or remap your image from one pixel grid to another.


How do you re size pictures?

Image > Resize Enter size.


How do you do half and half of two pictures?

From Image > Image Size you can resize picture size to its half.


How many types of image resolution?

There is no limit to the image resolutions, sicen you can resize an image at least theoretically to have any width or height.


What is an image enhancer?

An image enhancer is a program or tool that can improve the quality of an image by increasing its contrast, sharpness, and other attributes. It can also be used to remove noise, artifacts, and other unwanted elements from an image.


What does image resize means in Photoshop?

what does it mean to constrain the imagine proporciona when importing?


How do you resize a photo in Photoshop?

You can do that with Crop tool or from Image -> Image Size. See ralated link for good explanation how to do that properly.


How do you resize a photo using Photoshop 7.0?

Click on Image on the menu, then select Image Size and type in the sizes you want.


How can one resize an image in Microsoft Word?

To resize a drawing in Microsoft Word, first double click on the drawing to select it. Place your mouse pointer over one of the image handles and, while holding the right mouse button, drag the handle outward, which will make the image increase in size.


How do you size an image into the correct pixels?

In Photoshop, navigate to the Image menu, then click Image Size... You can change the amount of pixels in the Pixel Dimensions section.If you don't have Photoshop you can download the XnView image viewer for free and use that to resize it. Open the image in XnView, click on Image then Resize. You can change the resolution in the Screen Size section. After you change the size you will need to save the image from the file menu to save the changes when you close XnView.