Thursday, March 30, 2023
  • Events
  • Interviews
  • Jobs
  • Opinion
  • Whitepapers
  • Podcasts
  • Web Hosting Directory
  • Login
  • Register
Cloud7 News
  • Cloud Computing
  • Web Hosting
  • Data Center
  • Linux
  • Cybersecurity
  • More
    • Software
    • Network/Internet
    • Hardware
    • Artificial Intelligence
    • Windows
    • Policy/Legislation
    • Blockchain
    • Troubleshooting
    • How-Tos
    • Articles
No Result
View All Result
Cloud7 News
  • Cloud Computing
  • Web Hosting
  • Data Center
  • Linux
  • Cybersecurity
  • More
    • Software
    • Network/Internet
    • Hardware
    • Artificial Intelligence
    • Windows
    • Policy/Legislation
    • Blockchain
    • Troubleshooting
    • How-Tos
    • Articles
No Result
View All Result
Cloud7 News
No Result
View All Result

Home > How-Tos > How to enable WebP images on WordPress

How to enable WebP images on WordPress

Saving bandwidth by using WebP images instead of JPG or PNG is possible. Here, we are showing you how to achieve it.


Rusen Gobel Rusen Gobel
September 24, 2022
5 min read

Currently, WordPress development and performance teams are in a deep discussion about implementing WebP support to WordPress. WebP is an image format by Google that shrinks the image sizes without any quality loss. Or, those images can be used for further optimizing the images with a little cost in quality.

While this sounds great, currently we need to keep both the source JPG and PNG files and the generated WebP files in the server because WebP images are not supported by older versions of the browsers. This means the server requires additional disk space for generated WebP images; this is why WordPress developers are still discussing it.

But if you have more than enough disk space in your server and you want to speed up your website, you can use WordPress plugins to start using WebP. In this guide, we will be telling about installing and configuring WebP Express.

Table of Contents

  • WebP Express installation
  • Operation mode settings
  • “General” settings
  • “.htaccess rules for webp generation” settings
  • Conversion settings
  • Alter HTML settings
  • Web service settings

WebP Express installation

Search for the WebP Express plugin in the Plugins section in the WordPress interface. Install and activate the plugin that can be seen below on your site. Then, go to the WebP Express settings you installed.

WebP Express installationWebP Express installation


Operation mode settings

The first setting title is Operation Mode, where we select how WebP contents will be displayed. We choose the Varied image responses option. If the users’ browser has WebP support, this option creates a rule that converts JPG and PNG to WebP format upon request.

Operation mode settings


“General” settings

Let’s dive into the settings in the “General” area:

  • Scope: It determines in which folders the WebP Express plugin will run. We only wanted it to affect the uploads file and theme files.
  • Image types to work on: It asks what formats we want to convert images to WebP. If you are using JPG and PNG on your site, select “Both jpegs and pngs”.
  • Destination folder: In this setting, you can specify in which folder you want the converted files to be placed. Options include Mingled and In separate folder. If you select “Mingled”, it adds the WebP image you uploaded to the same location as the original file. Images uploaded with the “In separate folder” option are moved to a different folder.
  • File extension: This option activates if you select the Mingled option from the Destination folder selection. There are Append and Set options. In the “Append” option, your images are appended as “image.png.webp”. In the “Set” option, it changes the file to “image.webp”. You should be careful when choosing this option. Problems may arise if there are files named logo.png and logo.jpg in the same folder; they will both become image.webp.
  • Destination structure: This is the option where you can set the path settings of the uploaded files. Both options are okay; we are choosing the “Image roots” option.
  • Cache-Control header: With the Cache-Control header, you can set the cache times of the files. Select the Custom option and leave it at its default setting.
  • Prevent using WebPs larger than original: Always leave this option enabled. If somehow a WebP file ends up being larger than the original, selecting this option will make the extension serve the visitor the original one.

"General" settings


“.htaccess rules for webp generation” settings

In most cases, there is no need to disable those options. Make all of them “enabled”.

".htaccess rules for webp generation" settings


Conversion settings

Jpeg options and PNG options are almost the same. Let’s have a look at their options together.

  • WebP encoding: Using WebP format supports two encoding types: Lossy and Lossless. If you choose Auto from the options, it will try to use both options and choose the one with the smallest file size. The “Lossy” option will degrade the quality of the image. Leave it as “Auto”.
  • Quality for lossy: If you select the “Same as the jpeg” option, it tries to detect the quality of the image and applies the same for the WebP. “Limit” is the highest quality limit and “Fallback” is the quality value for when it fails to detect the quality of the file.
  • Quality for lossless: You can select “Apply preprocessing” here to set a maximum quality value for your WebP images, or select 100% lossless for direct conversion to WebP.
  • Alpha quality (PNG only): You can set the quality for transparent sections in PNG images here. We recommend setting a high value here.
  • Metadata: If you don’t need the metadata in images, use the “No metadata in webp” option.
  • Conversion method: These are the conversion methods supported by the WebP Express plugin. We do not use any 3rt party applications. You can use Imagick, Gmagick, or Gd extension as PHP Extension.
  • Convert on upload: As it says, you can force the plugin immediately convert the images as it is uploaded to the server. Otherwise, it will convert the image with the first request from a visitor. Leave this option enabled.
  • Enable logging: If you are having problems with the extension, you can turn this on for debugging. Otherwise, leave it off.
  • Bulk convert: Here you can force the plugin to convert all the images in the target folders immediately. It will take time depending on your hardware and the number of images. You can also use the “Delete converted files” button if somehow you need it.

Conversion settings


Alter HTML settings

If this option is activated, it replaces the <img> tags with <picture>, making them HTML5 compatible, and configures the image accordingly if there is more than one display option (like automatically resized images).

Alter HTML settings


Web service settings

It enables other websites to use your website to convert images. Leave it off.

Web service settings

Tags: WordPress
Rusen Gobel

Rusen Gobel

Rusen Gobel is the managing editor of Cloud7. With more than 10 years of experience, Rusen worked as a hardware and software news editor for technology sites such as ShiftDelete, Teknokulis, Hardware Plus, BT Haber. In addition, Rusen publishes consumer product reviews on his YouTube channel. While consumer electronics has been his main focus for years, now Rusen is more interested in WordPress and software development. He had contributed different web application projects in his professional career. Rusen had graduated from Istanbul University, department of Computer Engineering. Rusen has a very high passion for learning and writing for every kind of technology. That's why he has been working as a tech editor for more than ten years on several different technology magazines and online news portals.

Next Post
TWS acquires French web hosting provider o2switch

TWS acquires French web hosting provider o2switch

Related News

How to get Linux ready for gaming

How to get Linux ready for gaming

March 30, 2023 2:45 pm
How to install and run Android apps on Windows

How to install and run Android apps on Windows

March 28, 2023 5:00 pm
How to manage DNS settings in Linux

How to manage DNS settings in Linux

March 23, 2023 9:00 pm
How to change system language on Windows 11

How to change system language on Windows 11

March 22, 2023 7:00 pm
Get free daily newsletters from Cloud7 News Get the Cloud7 Newsletter
Select list(s):

Check your inbox or spam folder to confirm your subscription.

By subscribing, you agree to our
Copyright Policy and Privacy Policy

Get the free newsletter

Subscribe to receive the latest IT business updates straight to your inbox.

Select list(s):

Check your inbox or spam folder to confirm your subscription.

Recent News

  • [Event] Grab your DeveloperWeek Europe 2023 ticket free
  • How to get Linux ready for gaming
  • Trisquel GNU/Linux 11.0 review
  • What is continuous testing in DevOps?
  • [Event] FOSSASIA Summit 2023 – Get your discounted ticket now

Cloud7 News
Cloud7 is a news source that publishes the latest news, reviews, comparisons, opinions, and exclusive interviews to help tech users of high-experience levels in the IT industry.

EXPLORE

  • Web Hosting
  • Cloud Computing
  • Data Center
  • Cybersecurity
  • Linux
  • Network/Internet
  • Software
  • Hardware
  • Artificial Intelligence
  • How-Tos
  • Troubleshooting

RESOURCES

  • Events
  • Interviews
  • Jobs
  • Opinion
  • Whitepapers
  • Podcasts
  • Web Hosting Directory

Get the Cloud7 Newsletter

Get FREE daily newsletters from Cloud7 delivering the latest news and reviews.

  • About Us
  • Privacy & Policy
  • Copyright Policy
  • Contact

© 2023, Cloud7 News. All rights reserved.

No Result
View All Result
  • Cloud Computing
  • Web Hosting
  • Data Center
  • Linux
  • Cybersecurity
  • More
    • Software
    • Network/Internet
    • Hardware
    • Artificial Intelligence
    • Windows
    • Policy/Legislation
    • Blockchain
    • Troubleshooting
    • How-Tos
    • Articles
  • Events
  • Interviews
  • Jobs
  • Opinion
  • Whitepapers
  • Podcasts
  • Web Hosting Directory

© 2023, Cloud7 News. All rights reserved.

Welcome Back!

Sign In with Facebook
Sign In with Google
Sign In with Linked In
OR

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Sign Up with Facebook
Sign Up with Google
Sign Up with Linked In
OR

Fill the forms below to register

*By registering into our website, you agree to the Terms & Conditions and Privacy Policy.
All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In

Add New Playlist

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.