You also need to update the database so that the converted images are referenced properly instead of the old ones. If you delete the old format images without updating the database, you will break the site as none of the old images will be found.
The plugin “WebP express” will help with this, but I think it requires both the old and new files to be present. One benefit to using it is that the shrinking number of browsers that do not support webp format will continue to work on your site.
The downside is obviously the additional space that having both old (jpg & png) formats and webp image formats available will use. In testing, my experience was roughly 50% more space was used than when it was just the old format images.
Related Posts:
- Upload media files to Amazon S3
- show hide image script after 4 seconds [closed]
- How do I disable responsive images in WP 4.4?
- How to delete resized (cropped) image uploads and prevent future resizing?
- After Moving a Site to Another Domain, All Images Are Lost
- How to display a page’s featured image?
- Featured image shortcode
- How to find attachment by it’s name?
- Change html structure of all img tags in WordPress
- Theme Customiser Image Control
- How to disable “insert into post” only when selecting the Featured Image?
- Is there a way to define a default caption to all uploaded images
- How to increase media image scale limit?
- Dynamic-Image-Resize Plugin does not output anything
- How to default all users to no link for attachments?
- How to output placeholder image if no featured image set?
- Cannot access the thumbnails of attachment images… Cannot find the reason
- How to place an image into header.php? [closed]
- Uploading an image as featured image from frontend form
- @wordpress/create-block image url in css
- How to include a picture in a blog post such that it will show in Facebook?
- Remove ‘wp-content/themes/themename/’ from Image path
- Why html tags are being appended to my pictures?
- How to create a simple slideshow out of a post image gallery?
- Lazyload post thumbnails
- Is there a way to change wordpress image resize settings?
- wordpress media library shows empty images
- How to change the target size of images clicked on in WordPress standard gallery
- Adding different backgrounds for different pages
- Mobile Featured Image Bug
- If Media Type .GIF
- Migrate image from my old blog
- the_post_thumbnail() image sizing problem?
- Imagick vs GD colour issues on image uploads
- How to add image and featured image to post by WP REST API
- Jetpack’s photon causes local site to try and serve images from WordPress CDN [closed]
- Get ALT attribute from title post (code not work)
- Why it doesn’t show media urls on rest Api? (WordPress)
- Resize images in existing posts
- WordPress PNG compression issue
- “Unable to create new image” error in wordpress dashboard image editor
- Fallback image size when using wp_get_attachment_image_src / full size compressed image
- Rewrite all article pictures to link to file
- How can I add a ‘Click to Enlarge Image’ feature, with the enlarged image opening in a popup?
- Is there a resolution limit in image resize?
- How to remove header images from displaying (not css or editing)?
- Setting default image size
- Automatically Insert alt attribute above image has h2
- Rebuild thumbnails via WP Cli – how?
- How can I make an image full width inside a paragraph which is 70% (text) [closed]
- Images uploading from media going in wrong folder
- Row background image not showing in mobile browser served from wamp local host
- Get ID for previous/next image link
- adding image to post thumbnail from another server
- Logo is not being displayed in header (Twentytwelve)
- Set Featured Image not opening – Stuck at loading
- Simple Local Avatar Plugin
- Pagination between images (active/inactive)
- Web App mode leaves users stranded when following image links when using WPTouch with W3 Total Cache [closed]
- Always display a picture even if the link is broken?
- My authors need to be able to preview their upload images and manipulate and scale
- Lazy Loading of all Images
- wp_get_attachment_image – enable width and height attributes for an SVG image
- How to remove image size inline style in article and include caption
- Do I need to re-register all my images in the media library after a migration?
- How can I change the header on the pages?
- still need help-images inside wp-content/ uploads/ are not showing up in my media library and uploaded using FTP protocol
- ADD class to all my images (thumbail)
- Export wordpress image ID based off keyword search
- Post Images are not showing up whenever I use shortCodes in my posts
- How to get large size of a post’s image?
- WordPress Images Are Not showing After Changing Directory Name
- Adding a URL Parameter to JPEG images in posts
- Delete post if featured image is smaller than Y pixels by Y pixels
- How to use lossless compression with WP_Image_Editor
- image_send_to_editor filter – Unwanted paragraphs and line breaks
- Edit image itself
- Url link to feature image in the portfolio [closed]
- How Do I Auto Generate Thumbnail from First Embedded Image?
- Get an array containing ONLY post IDs of attached images
- Exporting a portfolio with pictures
- Protocol relative url not pulling up images on IE, FF, and OPERA
- Retaining original image size
- Rename uploads filenames to POST-ID on upload
- Transfered live site to new server and images are not showing
- Limit files uploaded per folder
- Imagem resolution responsive
- How do you hide images from posts only
- Display image title and caption inside a single post
- WP is showing wrong image dimensions
- Bug when uploading pictures with Arabic name characters?
- Changing logo image in header.php upon language detection
- WordPress can’t get image url but both the attachment and the actual file are there
- How To Showcase High Quality Images On WordPress Website?
- How to have the frontend show the appropriate image size?
- Copy Content with Images to Other Site
- Images are not being displayed in wordpress
- I can’t see all images in my media library – How Can I reset the index of that library?
- How can I remove the post image hyperlink or edit it to target=”_blank” when inside a protected folder?
- How do I link an image in a svg file in wordpress?