{"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: 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, If you aren’t sure which file type is best for a particular image, try saving the image in more than one type and comparing the file sizes. Using the right type can make a big difference! There’s more information in Image file type and format guide<\/a>. <\/p>\n\n\n\n Not all graphic software packages allow you to resize images, though most should. Check your graphics software table of contents or index for resize<\/em>, size<\/em>, transform<\/em>, reduce<\/em>, or enlarge<\/em>, all synonyms for the for the same thing. If they don’t have the feature, you may have to find different software.<\/p>\n\n\n\n The process of resizing images is fairly simple. There are usually two methods:<\/p>\n\n\n\n 1) You can resize an image through the use of tools provided which allow you to manually shift the edges of an image to deform or resize the image. The best way is to grab a corner, not the edge, to resize the image. The corner “handle” will usually resize the image maintaining the overall height-width ratio. Check your manual for specific instructions.<\/p>\n\n\n\n 2) The other method involves simply specifying the image’s final size. The advanced graphics programs allow you to set it by exact dimensions or a percentage of reduction or enlargement.<\/p>\n\n\n\n After resizing the image, the image may be smaller, but it may also be slightly out of focus. You can sharpen the focus of the small image by using the sharpen<\/strong> feature in your software.<\/p>\n\n\n\n When you have fine-tuned your small sized image or new thumbnail, export the image as a jpeg,gif,png<\/code> and (for favicons<\/a> (the icons next to the address))
ico<\/code>.<\/p>\n\n\n\n
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
\n
jpg<\/code> (JPEG) is good for photographs. Saving a photo as
jpg<\/code> removes detail from the photo. Good photo editors let you control how much detail is removed (the “compression”). Different photos need different compression; doing this carefully and viewing the result can give you a usable photo with a small file size.<\/li>\n\n\n\n
gif<\/code> can be poor for photographs. It’s better for line art, like logos, with solid areas of the same color.<\/li>\n\n\n\n
png<\/code> is for both photographs and line art. It compresses photos without losing detail, but usually makes larger photo files than JPEGs. Some older browsers don’t completely support
png<\/code>, though.<\/li>\n<\/ul>\n\n\n\n
Resizing Images<\/h2>\n\n\n\n
jpg, gif,<\/code> or
png<\/code>.<\/p>\n\n\n\n
Further reading<\/h2>\n\n\n\n
\n
Resources<\/h2>\n\n\n\n