answersLogoWhite

0

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

13y ago

What else can I help you with?

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 can I resize an image file size effectively?

To resize an image file size effectively, you can use image editing software to reduce the dimensions of the image, adjust the image quality or compression settings, and save the image in a different file format that is more efficient for web use, such as JPEG.


How can I resize an image file?

To resize an image file, you can use photo editing software like Adobe Photoshop or online tools like Canva. Simply open the image file in the software, locate the resize option, and adjust the dimensions or percentage to your desired size. Save the resized image file with a new name to preserve the original.


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 can I resize an image to 16x20 dimensions?

To resize an image to 16x20 dimensions, you can use photo editing software like Adobe Photoshop or online tools like Canva. Open the image in the software, go to the resize option, and enter the dimensions as 16x20. Make sure to maintain the aspect ratio to avoid distortion. Save the resized image in the desired format.


How does the image auto cropper work to resize and adjust images automatically?

The image auto cropper uses algorithms to analyze the content of an image and determine the best way to resize and adjust it automatically. These algorithms identify important elements in the image, such as faces or objects, and then crop or resize the image to highlight these elements while maintaining the overall composition. This process helps to ensure that the image looks visually appealing and balanced after the adjustments are made.


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 does image resize means in Photoshop?

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


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.