• Resolved idovecer

    (@idovecer)


    #1 Is it possible to convert JPG images to WebP to save space and completely remove the JPG images?


    #2 If this is not possible with a plugin, what actions need to be performed in the background to ensure everything functions correctly? I understand that all images need to be converted in the background using ‘mogrify’/’cwebp’ to the WebP format, and then in the database, change all ‘.jpg’ to ‘.webp’. Will there be any issues due to the difference in string length because WebP has one extra letter?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WP Media

    (@wp_media)

    Hi,

    #1 It is not possible to remove JPEG/PNG images by default at this moment. However, you can delete them on your own as long as you will directly add WebP images to your pages/posts, as you suggested in #2.

    #2 Yes, you would have to simply add WebP URL, that’s the way to go. The important thing is not to replace “.jpg” with “.webp” but to append it to the original image URL, like this:

    https://yoursite.com/wp-content/uploads/2023/10/image.jpg

    would become:

    https://yoursite.com/wp-content/uploads/2023/10/image.jpg.webp

    It will work just fine this way. The “.jpg” part will not be extension, it becomes the part of image name and we keep it in order to know what was the original format of the image.

    Hope this helps. ?Let me know if you need any further assistance, I am happy to help.

    Best Regards,
    Marko

    Are you planning on adding a replace all jpgs with webp feature? Now that webp is widely supported there is little reason to keep the very bug prone replacement mechanism instead of just going all in on webp

    Plugin Author WP Media

    (@wp_media)

    Hey @comyu,

    Thank you for your message. I see that you have already opened a ticket in our support channel, and we have responded there. Please check your email for our response.

    Best regards,
    Saransh.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Converting JPG Images to WebP and JPG removal’ is closed to new replies.