They’re a good option for graphics and icons, and for very high-quality images. As a result, they tend to be of higher quality, but offer a smaller improvement in file sizes and page speeds. This means that all the information about the image is retained when the file is compressed. Since PNGs can have transparent backgrounds, for example, they are more versatile and handy for designing web graphics. PNG files are also useful for web content, just like JPEGs, but in a different way. Fortunately, the reduction in quality isn’t too noticeable, especially for smaller images. However, what it does mean is that converting to a JPEG results in a smaller file size, but there can be some sacrifice in overall image quality. That information isn’t needed for simply displaying the image. When a larger image is converted to a JPEG, some of the information contained in its file is lost. This kind of image file uses what’s called a ‘lossy’ format. JPEG files are a good choice for both print and web content. However, these image types have different strengths and weaknesses. Pixels stretch when you change the size of an image, which can sometimes make it blurry. Both of these formats are made up of pixels. The two most common image formats used online are JPEGs and PNGs. Understanding how each of them is different and when it’s best to use them can help you build towards a more streamlined use of images. To get started, let’s take a look at the various kinds of image formats that exist. With that in mind, let’s look at some of the considerations you’ll need to make when deciding how to optimize your site’s media. That would defeat the purpose of lightening your website’s load through image optimization. This is so you don’t end up with duplicates or multiple versions of one image. Ultimately, the best case scenario for your website is that you optimize your images before you upload them. Optimize Your Images Before Uploading to WordPress This reduces your media file sizes, and can have a significant impact on your site’s speed overall. In other words, optimizing means you are getting the best quality you can out of the least pixels and bytes. The number of bytes used to encode each image pixel.Image optimization is really about improving two things: There are many factors that influence your PageRank, and images fall under the “Usability of web pages” category. This means that how fast or slow your page loads will dictate, to some extent, how well it ranks in search results. It’s also worth noting that site speed is a Google ranking factor. Consequently, it’s important to optimize the images you upload to your site. While there are multiple factors that can slow down your site, images and media files take up a hefty 63 percent of bandwidth on modern websites. In fact, pages that take five seconds or more to load see on average a 90 percent increase in the probability of a user bouncing (leaving after only viewing a single page). However, they can also be one of the main causes of slow page loading times.Ī slow website is a problem, because it can drive users away. Images are a valuable and important piece of any content strategy. Optimize Your WordPress Website with WP Engine Why You Should Be Optimizing Your Images for WordPress Navigate to the php.ini file in question ( WHM > Software > MultiPHP INI Editor) and add the following line to the bottom of the file before saving: zlib.5. It is also possible to enable zlib.output_compression for Wordpress sites using a php.ini file. In addition, the following resource from GTmetrix is useful for understanding which rules to put in place: The following documentation should help if you want to set gzip compression globally: (If you want gzip compression for one domain only). Once this is done, you will need to enable the compression by either setting the rules in an Apache include (to enforce gzip compression server-wide), or via an individual domain's. You can then click "Review" on the left-hand side and provision the new build. If it is not, you will want to install mod_deflate using the EasyApache 4 interface ( WHM > Home > Software > EasyApache 4).Ĭustomize your profile, select Apache modules, find mod_deflate, and tick it on. In addition, gzip compression does not work with the CGI PHP handler, so you must select a different PHP handler in order to use it.įirst, you will want to make sure that mod_deflate is enabled on your server: cPs# httpd -M | grep 'deflate' However, simply having mod_deflate enabled is not enough to have your content compressed. In Linux systems, gzip (mod_deflate) is used to compress HTTP content before it is served to the client this results in faster network transfers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |