{"id":10840109,"date":"2018-11-02T04:28:01","date_gmt":"2018-11-02T04:28:01","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=helphub_article&p=10840109"},"modified":"2023-07-05T09:29:08","modified_gmt":"2023-07-05T09:29:08","slug":"image-size-and-quality","status":"publish","type":"helphub_article","link":"https:\/\/wordpress.org\/documentation\/article\/image-size-and-quality\/","title":{"rendered":"Image size and quality"},"content":{"rendered":"\n

The size and quality of an image for use on a web page is determined by a variety of things.<\/p>\n\n\n\n

Physical Size <\/strong><\/p>\n\n\n\n

The physical size of an image is based upon two things: The size of the image on the screen and the file size. Generally, the file size is treated as a different issue.<\/p>\n\n\n\n

File Size <\/strong><\/p>\n\n\n\n

This is the size of the file on your hard drive or server.<\/p>\n\n\n\n

Resolution <\/strong><\/p>\n\n\n\n

Resolution<\/em> refers to the number of pixels in an image. Resolution is sometimes identified by the width and height of the image as well as the total number of pixels in the image.<\/p>\n\n\n\n

File Type <\/strong><\/p>\n\n\n\n

There are basically X image types popularly found on the Internet: jpeg,gif,png<\/code> and (for favicons<\/a> (the icons next to the address)) ico<\/code>.<\/p>\n\n\n\n

The physical size<\/strong> of the image is information we need to know in order to determine how much “space” will the image occupy on a web page. If your WordPress Theme features a fixed width content area of 600 pixels and the image you want to use is 800, the image will push the sidebar and layout of your web page around, messing up your design. Images within that 600 pixel width need to be restricted to that maximum width in order to protect the layout of your page. It’s up to you to determine what size they should be from there, matching the image to your overall layout and styles.<\/p>\n\n\n\n

File size<\/strong> dictates the time it takes to load your page, the larger the file size, often increased because of a high image resolution<\/strong> quality, the longer it will take to load. People often don’t have the patience to wait through long web page loads, so keeping your file sizes low speeds up your web page access times. Typically, large high quality images should be kept between 100K and 60K. Smaller images should be closer to 30K and lower.<\/p>\n\n\n\n

The resolution<\/strong> of the image dictates its clarity. The higher the resolution, though, the larger the file size, so you have to make a compromise between quality and file size.<\/p>\n\n\n\n

Luckily, the various file types most commonly used on the Internet have compression<\/em> features. When you save the file as one of these types, it condenses or compresses<\/em> the data information in the image file. Internet browsers can decompress<\/em> this information to display the image on the screen. Some graphic software programs allow you to set the compression rate to control the quality of the image (and file size) at the time you save it. Depending upon your use of the images on your site, you may have to experiment with this to get the right ratio that keeps the resolution quality good while maintaining a small file size.<\/p>\n\n\n\n

Websites use four common file types<\/strong>. The end of a filename (called the extension<\/em>) tells what type it is. One type, ico<\/code>, is to make a favicon<\/a><\/em> file — but this is usually only done when a website is first set up. The other three types are used for general images:<\/p>\n\n\n\n