How to load a webp in QImage?


I have a simple project that displays an image picked by the user. In the process, I run:

QImage image;
image.load(imagePath);

But QImage remains with an “invalid” image. It does work for other image formats, like png and jpg.

As I understand it, webp is supported by something called “Qt Image Formats”, that’s external to QtGui, but looking at the plugins/imageformats folder, there is no webp dll, only a qwebp.pdb file.

How can I acquire this dll? Or am I missing the mark somewhere?



Source link

Leave a Comment