Providing resized images is one of the most overlooked ways to provide better site performance. Pick up your text printing website again. Do you have any images? Images take up a lot of file size space, especially when they are bloated and large. Therefore, if you want to improve page speed, conversion, or sales, the image must rank first in the list of items to be optimized. This post will focus on how to provide scaled images to WordPress. WordPress will learn how to properly size images in a variety of ways, and how to use Smush pro to significantly improve the image optimization workflow. The
What is scaling an image? Images on the web must belong to the goldiracks zone. Not too big, not too small. They should be just right. If it is too small, the magnification will blur. The image is too small. It is enlarged to HTML width attribute. Conversely, if the image is too large, the browser shrinks the image to the correct size. This does not affect the appearance of the image, but it adds to the file size of the page. Since you cannot see the complete wizard quality changes to master image optimization, it is easy to ignore the additional weight of the image file. And most people don’t solve problems because they don’t know they have problems. They continue to rely on browsers to provide the appropriate size. Because that is the purpose of the browser. Yeah. The
Error. After you get the opportunity of \
If you are reading the post in full screen, the body width of the post is 600px. We are about optimization in wpmu dev, so when creating an image of a blog post, we should accurately set the width to 600px. This is the exact size I need, because the browser does not need to perform other operations, nor does it need to use more data. Site speed optimizers (such as hummingbird, gtmetrix, and Google pagespeed Insights) are the best guidelines for improving the speed of WordPress. It is recommended to resize images to improve performance. The
If the image is too large and the page speed becomes slow, gtmetrix will say, \
. The source kit of mobile self timer mentioned above includes: The
Srcset= \
To begin providing scaled images in WordPress, you must know the size of the images that your site will use. I’m talking about banner images, hero images, blog post images, gravatar, etc. On WordPress, check out the quick tutorial to learn how to detect images of incorrect size. We know that anything beyond this threshold is useless, so we want to know what the maximum size of each image is. For example, suppose you want to use ocean pictures on the home page of my website. The unchanged image is 4534px x 3023px. The
In order to change the size of the photo, nothing is done For the image in the body of the blog post, you must also provide an image with a width of 600px-960px. For the main image that spans the screen width of the desktop computer, you are viewing an image with a width of 1600px. range In addition, to accommodate the retina screen, you must double its size. The maximum size required for a 1600px image is 3200px. Find the image in the site and open the browser developer tool to find that the image exactly matches the desired size. If using chrome, right-click the image and go to check. In Firefox, select element checking. The
You can also use androg ctrl+shift+i. When you hover over the URL of an image in chrome, the size of the image and the original \
To manually clip an image in a media library, navigate to media > library, and then click the image you want to clip. Then click the \
You can enter the desired width and height, and then click the zoom button to resize the image. Alternatively, to clip an image, you can resize the image by clicking on the image and selecting the area to drag. Then release the mouse click to display the selection. The 9 hidden features of WordPress media library are only known to advanced users