Questions about image definition and image definition

Source: Internet
Author: User

Questions about image definition and image definition

Today, I tested a BUG that I suggested to modify, saying that the icons in the title bar are not too clear,

There is a school logo for South Polytechnic in the title bar, because the overall height of the title bar is 36PX,

I asked the artist to give me a 32x32 transparent background South Polytechnic icon. The result is unclear,

I used the original X opaque original image. By setting the width and height attributes of IMG,

Display it as the size of 32x32. It is clearer than using 32x32 directly,

However, this file is too large to display such a large image on the webpage,

So I used PS to adjust it to X and set the background color to transparent,

After the project is put in, the display effect is much better than the previous 32x32,

Summary: if you use a 32x32 image directly, some details will be compressed, so it is not clear,

By setting the height and width attribute to control the size of a 4-fold image, the image definition can be effectively preserved, and the image will not be too large.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.