{"id":5807,"date":"2021-04-29T10:22:30","date_gmt":"2021-04-29T10:22:30","guid":{"rendered":"https:\/\/shortpixel.com/blog\/?p=5807"},"modified":"2021-04-29T14:14:23","modified_gmt":"2021-04-29T14:14:23","slug":"shortpixel-image-optimizer-the-only-wp-plugin-that-creates-avif-images","status":"publish","type":"post","link":"https:\/\/shortpixel.com\/blog\/shortpixel-image-optimizer-the-only-wp-plugin-that-creates-avif-images\/","title":{"rendered":"ShortPixel Image Optimizer: The only WP plugin that creates AVIF images"},"content":{"rendered":"\n<p>AVIF images are the next big step in image compression, and we have already <a rel=\"noreferrer noopener\" aria-label=\"been talking about it (opens in a new tab)\" href=\"https:\/\/shortpixel.com/blog\/what-is-avif-and-why-is-it-good\/\" target=\"_blank\">been talking about it<\/a>. AVIF promises images&nbsp;<strong>50% smaller than JPG<\/strong>, and still keeping the same image quality. In comparison, WebP makes the image about 30% smaller, so it&#8217;s easy to see why you will want AVIF.<\/p>\n\n\n\n<p>Starting with version 4.22, <strong>ShortPixel Image Optimizer (SPIO) is able to generate AVIF images<\/strong>! No need to use any hacks or manually upload them to your site. You just need the good old <a href=\"https:\/\/wordpress.org\/plugins\/shortpixel-image-optimiser\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"ShortPixel Image Optimizer (opens in a new tab)\">ShortPixel Image Optimizer<\/a>.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">How to generate AVIF with ShortPixel<\/h2>\n\n\n\n<p>The process to generate AVIF images is as easy as always:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Install ShortPixel Image Optimizer from the WordPress repository:  <a href=\"https:\/\/help.shortpixel.com\/article\/330-step-by-step-guide-to-install-short-pixel-image-optimization\">Step-by-step guide to install and use ShortPixel Image Optimizer (SPIO)<\/a><\/li><li>Go to Settings &gt; ShortPixel &gt; Advanced<\/li><li>Look for the &#8220;Next Generation Images&#8221; section and activate the option  &#8220;<strong>Also create&nbsp;<\/strong><a rel=\"noreferrer noopener\" href=\"https:\/\/shortpixel.com/blog\/what-is-avif-and-why-is-it-good\/\" target=\"_blank\"><strong>AVIF versions<\/strong><\/a><strong>&nbsp;of the images<\/strong>&#8220;<br><img decoding=\"async\" width=\"1024\" height=\"804\" class=\"wp-image-5809\" style=\"width: 1024px;\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2021\/04\/Screenshot_20210429_105418.jpg\" alt=\"\" title=\"\" srcset=\"https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2021\/04\/Screenshot_20210429_105418.jpg 1177w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2021\/04\/Screenshot_20210429_105418-300x236.jpg 300w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2021\/04\/Screenshot_20210429_105418-768x603.jpg 768w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2021\/04\/Screenshot_20210429_105418-1024x804.jpg 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/li><li>Start optimizing!<\/li><\/ol>\n\n\n\n<p>Notice that, for now, <strong>the creation of AVIF and\/or WebP files with ShortPixel is dependent on the optimization<\/strong> of a file. This means that you must optimize an image in order to create its AVIF\/WebP counterpart.<\/p>\n\n\n\n<p>However, we are happy to share with you that we are working on a feature to generate AVIFs and WebPs <strong>independently <\/strong>of the optimization. Our aim is to have it ready for the next major version 5.0. We will keep you updated!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to deliver AVIF with ShortPixel<\/h2>\n\n\n\n<p>If you want to serve AVIF files with ShortPixel, you can do that as well. Simply go to Settings &gt; ShortPixel &gt; Advanced (same place as before) and activate the option &#8220;<strong>Deliver the next generation versions of the images in the front-end<\/strong>&#8220;. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"811\" height=\"1024\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2021\/04\/Screenshot_20210429_105637-811x1024.jpg\" alt=\"AVIF\" class=\"wp-image-5810\" title=\"\" srcset=\"https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2021\/04\/Screenshot_20210429_105637-811x1024.jpg 811w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2021\/04\/Screenshot_20210429_105637-238x300.jpg 238w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2021\/04\/Screenshot_20210429_105637-768x970.jpg 768w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2021\/04\/Screenshot_20210429_105637.jpg 924w\" sizes=\"(max-width: 811px) 100vw, 811px\" \/><\/figure>\n\n\n\n<p>You will see that you have <strong>two different methods<\/strong> to deliver the AVIF files. To learn more about them, <a rel=\"noreferrer noopener\" aria-label=\"click here (opens in a new tab)\" href=\"https:\/\/help.shortpixel.com\/article\/126-which-webp-files-delivery-method-is-the-best-for-me\" target=\"_blank\">click here<\/a>.<\/p>\n\n\n\n<p>It is important to know that the second method (<strong>without altering the page code, via .htaccess<\/strong>) will not work on NGINX servers. If your site is running on NGINX, and you do not want to use the first method (using the &lt;picture&gt; tag syntax), you will need to manually update your NGINX configuration files. For more information, we created a small tutorial on how to do that here:  <a href=\"https:\/\/shortpixel.com/blog\/avif-mime-type-delivery-nginx\/\">How to configure your web server to deliver AVIF images<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How much does it cost?<\/h2>\n\n\n\n<p>Even though the generation of AVIF files is <strong>very CPU intensive<\/strong> and takes up a lot of resources, it will cost <strong>only 1 credit per AVIF file created<\/strong>. Take into account that depending on your theme and plugins, you will have a <a href=\"https:\/\/help.shortpixel.com\/article\/113-how-can-i-optimize-only-certain-thumbnail-sizes\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"certain number of thumbnails (opens in a new tab)\">certain number of thumbnails<\/a> attached to each image. Each of these thumbnails will also have an AVIF counterpart and will cost an additional credit.<\/p>\n\n\n\n<p>Starting May 10th 2021, the same will apply to the generation of WebP files: each WebP file will cost 1 additional credit. To know more about why the WebP generation is not free anymore, check out <a rel=\"noreferrer noopener\" aria-label=\"this article (opens in a new tab)\" href=\"https:\/\/help.shortpixel.com\/article\/466-why-is-the-webp-generation-not-free-anymore\" target=\"_blank\">this article<\/a>.<\/p>\n\n\n\n<p>Also, remember that as always, if an image cannot be optimized by <strong>at least 5 percent<\/strong> when using the Lossy or Glossy methods, its optimization will still be <strong>free of charge<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Separating features to save credits<\/h3>\n\n\n\n<p>Now, if you were already a ShortPixel client, you may remember that until now you were not able to deliver your WebP files without creating them first. Well, good news! With the most recent update we have separated the two features: <strong>you can now create your AVIF and\/or WebP files with any other tool and choose to deliver them with ShortPixel.<\/strong> This way you will not spend any additional credits.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1024\" height=\"606\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2021\/04\/Screenshot_20210429_113343-1024x606.jpg\" alt=\"\" class=\"wp-image-5811\" title=\"\" srcset=\"https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2021\/04\/Screenshot_20210429_113343-1024x606.jpg 1024w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2021\/04\/Screenshot_20210429_113343-300x177.jpg 300w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2021\/04\/Screenshot_20210429_113343-768x454.jpg 768w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2021\/04\/Screenshot_20210429_113343.jpg 1116w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The process you need to follow is easy: <\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Disable <\/strong>the options &#8220;Also create&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/shortpixel.com/blog\/what-is-avif-and-why-is-it-good\/\" target=\"_blank\">AVIF versions<\/a>&nbsp;of the images&#8221; and &#8220;Also create&nbsp;WebP versions&nbsp;of the images&#8221;<\/li><li><strong>Enable <\/strong>the option &#8220;Deliver the next generation versions of the images in the front-end&#8221; and choose a delivery method.<\/li><li><strong>Upload <\/strong>your own WebP and\/or AVIF files and if they have the same filename as the original image, but with the .webp\/.avif extension (please also take into account all thumbnails!), then ShortPixel will deliver them<\/li><\/ol>\n\n\n\n<p>We are here to help you out if you have any questions, so feel free to <a href=\"https:\/\/shortpixel.com\/contact\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"send us a message (opens in a new tab)\">send us a message<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AVIF images are the next big step in image compression, and we have already been talking about it. AVIF promises images&nbsp;50% smaller than JPG, and still keeping the same image quality. In comparison, WebP makes the image about 30% smaller, so it&#8217;s easy to see why you will want AVIF. Starting with version 4.22, ShortPixel [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":5832,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5807","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-world-of-wordpress"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/posts\/5807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/comments?post=5807"}],"version-history":[{"count":7,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/posts\/5807\/revisions"}],"predecessor-version":[{"id":5831,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/posts\/5807\/revisions\/5831"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/media\/5832"}],"wp:attachment":[{"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/media?parent=5807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/categories?post=5807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/tags?post=5807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}