Question

Article don't work!!!

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.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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?

Regards, KFSys