Skip to main content

WordPress 5.8 adds native WebP image format support

WordPress 5.8 adds native WebP image format support

WebP images are now completely supported by WordPress versions most recent without the requirement for plugins or extra code.

On July 20, 2021, WordPress founder Matt Mullenweg announced the release of WordPress 5.8 Tatum. There was a mention of WordPress supporting WebP buried among the new features.

WebP is an image format that fully supports transparency and can drastically lower image file sizes without sacrificing visual fidelity. The ideal replacement for the JPEG and PNG picture formats is WebP. Regretfully, it has taken a long time for all of the major online browsers to implement the format. Apple Safari was the last browser to enable WebP; it took ten years for the browser to eventually add support, which happened in 2020.

The whole web design community was impacted by Apple's severe delay in providing support for WebP. WebP is still not supported by Adobe Photoshop, and WebP support was only added by the well-known Mac photo editor Pixelmator Pro when it was discovered that Safari would support it.

WordPress and other content management systems were also impacted by the delay. Until WordPress version 5.8, the only options for using WebP images were through plugins or by adding workaround code to the functions.php file of current themes.

The WebP picture format is fully supported natively by version 5.8. WebP images can now be added and used by WordPress users in the same manner as PNG and JPEG images.

In order to maintain WebP image functionality following the update to version 5.8, a WordPress instance running version 5.7 or earlier might wish to consider leaving any plugins or workaround codes in place. They can safely uninstall the plugin or remove the functions.php file's workaround code after the update. As usual, if something goes wrong, make sure you have a reliable backup and a quick restore option, like WP Engine does.

With WordPress's new WebP functionality, you may use the wp_editor_set_quality filter to adjust the compression quality. WordPress Core Committer and Developer Relations Engineer at Google, Adam Silverstein, provided code that theme and plugin authors can utilize to adjust the WebP quality level. If the code below is saved in the functions.php file, for instance, WordPress will convert all freshly uploaded WebP photos with a 75% quality preset.

You may get WordPress 5.8 with native support for WebP right now.

This is the email for you if you enjoy reading about web technology and marketing, as well as the occasional random item. Nothing except advertisements. no backers. Not a spammer. Just current and fascinating stories. At any moment, unsubscribe.

This website is hosted on WPEngine and uses Fathom Analytics, which prioritizes privacy.

Comments

Popular posts from this blog

11 Best WordPress Themes for Developers & Designers in 2024

11 Best WordPress Themes for Developers & Designers in 2024 Our content partners BAW Media created this sponsored article. We appreciate your help in enabling the partners who provide SitePoint. Your website's success or failure is largely dependent on the WordPress theme you select. When choosing a theme for your website, think beyond today and consider its longevity. You will be in danger if a WordPress theme doesn't seem 2024-ish, doesn't have integrated flexibility, and its developer isn't actively updating it. Regardless of the theme or style you choose, it must develop and adapt along with the business it will be utilized for. More than 10,000 fantastic WordPress themes are already available, and more are being developed all the time. How do you choose the greatest WordPress theme for developers out of so many options? These tried-and-true WordPress themes are the best in their class because to their gorgeous designs, user-friendly page builders, and inherent

Detectives Seek Help to Identify Reston Robbery Suspect

Detectives Seek Help to Identify Reston Robbery Suspect Detectives from our Major Crimes Bureau's Reston Police District are looking for assistance from the public to identify a man who may be linked to two robberies that have occurred in Reston. A man tried to take her backpack on July 26 when he approached an adult female victim close to the 11900 block of Barrell Cooper Court in Reston. Should she refuse to part with her possessions, the man threatened to abduct her child. The male was characterized as 56 years old, Hispanic, between the ages of 20 and 25, and thinly built. Below is a composite sketch of the suspect that was made: On August 9, two guys approached two adult ladies who were strolling along a trail close to the 12000 block of Greywing Square. After giving the women pepper spray, the first man grabbed one of their purses and fled. The first male was described as being tall, Hispanic, and about 19 years old. He had dark hair and chin-length facial hair. Below is a co

Wordpress and Tumblr Will Sell User Data to OpenAI for AI Tool Training

You have all heard about the recent controversy around Tumblr and WordPress selling user data to OpenAI for the purpose of training AI systems, don't you? Let me tell you, this is not a little thing. People are understandably alarmed about privacy and security concerns. However, before we get too worked up, let's take a country-style look at it. First things first: Wordpress and Tumblr are well-known websites where anyone may publish their ideas, thoughts, and creative works for public consumption. However, behind all of that entertainment and gaming, a ton of data is being gathered, from our likes and preferences to our posts and comments. And now it seems like OpenAI, a large technology business, is buying that data in order to train those AI tools to be even more intelligent. I'm not an expert in artificial intelligence or anything, but I have to admit that it scares me a little to think about what the people at OpenAI could do with all that data. We've all seen thos