Hi, I’m about the article: “https://www.digitalocean.com/community/tutorials/how-to-create-and-serve-webp-images-to-speed-up-your-website-ru”. More precisely, I’m about “Displaying WebP Images with mod_rewrite”. I did everything exactly as in the example, but the configuration for the file doesn’t work. Everything works fine when for files: “image1.jpg” and “image2.jpg” I specify the path: “image1.jpg” and “image2.jpg”, and for file “logo.png” the path: “logo.jpg” . That is, I change the extensions for the files (“png” to “jpg” or “jpg” to “png”), but I do not have such files !!! Help me please.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi @ntvsx601,

What happens when you execute this command on your images:

cwebp image.jpg -o image.webp

Does it give an error or does it create the files in the directory with the .webp extension?