Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Lose webp support on QT6.5.1 MINGW
Qt 6.11 is out! See what's new in the release blog

Lose webp support on QT6.5.1 MINGW

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 256 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tigerlfj
    wrote on last edited by
    #1

    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

    cristian-adamC 1 Reply Last reply
    0
    • T tigerlfj

      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

      cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote on last edited by
      #2

      See https://bugreports.qt.io/browse/QTBUG-113726

      Please reopen the bug report and add new information there.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved