Lose webp support on QT6.5.1 MINGW
-
Hi
I found there is problem on QT6.5.1 MINGW windows11 lose webp support. But it is ok on QT6.5.1 VS2019 windows11 . It is ok on QT5.15.2 MINGW windows11 also.
Use below code :
QImage Simage;
Simage.load("picname");
QBuffer buffer;
buffer.open(QBuffer::ReadWrite);
QImageWriter writerimage(&buffer,"WEBP");
writerimage.setQuality(1);
writerimage.write(Simage);
QByteArray PicT2M;
PicT2M=buffer.data();
qDebug()<<writerimage.supportedImageFormats()<<PicT2M.size();Got it on :Desktop_Qt_5_15_2_MinGW_64_bit-Release\untitled.exe...
("bmp", "cur", "icns", "ico", "jpeg", "jpg", "pbm", "pgm", "png", "ppm", "tif", "tiff", "wbmp", "webp", "xbm", "xpm") 0
QT_6_5_1_VS2019 is same as above. ( there is a qwebp.dll in C:\Qt\6.5.1\mingw_64\plugins\imageformats)Got it on:21:Desktop_Qt_6_5_1_MinGW_64_bit-Release\untitled.exe...
QList("bmp", "cur", "icns", "ico", "jpeg", "jpg", "pbm", "pgm", "png", "ppm", "tif", "tiff", "wbmp", "xbm", "xpm") 0
lose webp format;i don't know what is wrong on Qt_6_5_1_MinGW_64
-
Hi
I found there is problem on QT6.5.1 MINGW windows11 lose webp support. But it is ok on QT6.5.1 VS2019 windows11 . It is ok on QT5.15.2 MINGW windows11 also.
Use below code :
QImage Simage;
Simage.load("picname");
QBuffer buffer;
buffer.open(QBuffer::ReadWrite);
QImageWriter writerimage(&buffer,"WEBP");
writerimage.setQuality(1);
writerimage.write(Simage);
QByteArray PicT2M;
PicT2M=buffer.data();
qDebug()<<writerimage.supportedImageFormats()<<PicT2M.size();Got it on :Desktop_Qt_5_15_2_MinGW_64_bit-Release\untitled.exe...
("bmp", "cur", "icns", "ico", "jpeg", "jpg", "pbm", "pgm", "png", "ppm", "tif", "tiff", "wbmp", "webp", "xbm", "xpm") 0
QT_6_5_1_VS2019 is same as above. ( there is a qwebp.dll in C:\Qt\6.5.1\mingw_64\plugins\imageformats)Got it on:21:Desktop_Qt_6_5_1_MinGW_64_bit-Release\untitled.exe...
QList("bmp", "cur", "icns", "ico", "jpeg", "jpg", "pbm", "pgm", "png", "ppm", "tif", "tiff", "wbmp", "xbm", "xpm") 0
lose webp format;i don't know what is wrong on Qt_6_5_1_MinGW_64
See https://bugreports.qt.io/browse/QTBUG-113726
Please reopen the bug report and add new information there.