Home >Web Front-end >HTML Tutorial >I am particularly troubled by a question about img_html/css_WEB-ITnose
30×30 user image,
If the leader does not require it, write it directly on the front end as . . .
Of course, a lot of user avatars will be dynamically displayed on one page. . . If resize itself has efficiency issues, it's best. . I remember that there is a description of image resizing that is not recommended in yslow. . Not impressed anymore. . Please explain. .
And ask for various rebuttal opinions.
Tucao: MD leaders actually used the word "minimal" to describe this behavior of forcibly stretching user avatars! ! ! !
Do whatever your boss says. . Never mind. .
Same as above. Doing what the boss wants is not something that can be solved technically. In China, this is a political issue. You have to do it even if the boss says it’s okay. Even if the boss says it doesn't work, it has to be done regardless of whether it works or not.
One advantage of writing this way is that if the user avatar exceeds The 35X35 page will definitely be messed up.
Define the width and height in this way. No matter how big the user's avatar is, it will be displayed as 35X35 and the page will not be messy.
The problem is that if the user's avatar is smaller than 35X35, it will be stretched and the avatar will be blurred~·
Same as above Do as the boss asks, this cannot be solved technically, in China , this is a political issue. If the boss says it is OK, it has to be OK. Even if the boss says it doesn’t work, it still has to be done. !
Not the boss. . Just a superior. . There are no political issues involved. . There just isn't enough data or other theoretical support to refute him. . Except for the scale image that yslow said. . . .
There is an advantage to writing this way, That is, if the user avatar exceeds 35X35, the page will definitely be messed up.
Define the width and height in this way. No matter how big the user's avatar is, it will be displayed as 35X35 and the page will not be messy.
The problem is that if the user's avatar is smaller than 35X35, it will be stretched and the avatar will be blurred~·
Yes. . . It just becomes blurry after stretching. . But the leader believes that the impact of blurred avatars is "minimal". . Holy shit. . This is really unacceptable. . . So shameless. . .
The avatar is zoomed in the background. . That’s 30×30. . But it is certainly impossible to run it again and make all the avatars 35×35. Because the amount of data is too large and huge. . . There is nothing we can do if we don't let him run away. I just wrote about the fixed width and height. . But it must be so. Mainly zoom. . The effects feel extremely disgusting. .
Do whatever your boss says. . Never mind. .
1
There’s nothing to struggle with.
If he doesn’t agree, just do as he says. Wait until you see that the effect is not good, then try again. There's not that much difference between 30 and 35.
You can also use another style to shrink it.
Conclusion. . An article is kindly provided to you. It mentioned the problem of image resize.
http://stackoverflow.com/questions/9312584/whats-the-rationale-behind-the-yslow-rule-dont-scale-images-in-html
With various efforts, The plan has been changed. The resize was successfully abandoned! !