Search code examples
node.jsnuxt.jswebppagespeed-insights

External image can display as WebP Format?


My project is NuxtJS based.

I've been searching but couldn't find anything. In accordance with the working principles of my project, I pull images from external websites to my website via URL.

However, this creates problems in the Lighthouse reports. This is the error: "Serve images in nextgen formats".

Maybe it's silly, but is there a way to publish the images we take from websites in WebP format?


Solution

  • You can use API services. They will Convert them automatically for you. but it is only possible if you have a backend side for your website, doing this in frontend is pointless.