Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85836

Converting an animated gif to webp with QImage::save does not preserve the animation.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Out of scope
    • Affects Version/s: 5.14.2
    • Fix Version/s: None
    • Component/s: Image formats
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      I have been trying to convert all my image formats to webp in my application in order to save space.

      When I convert animated gifs to webp, which also supports animations, the conversion produces a still image:

      	QImage image("image.gif"); // 60 frames
      	QBuffer buffer;
      	{
      		image.save( "image.webp" );
      	}
      	QImageReader imageReader( "image.webp" );
      	{
      		imageReader.setDecideFormatFromContent(true);
      	}
      	qDebug() << imageReader.imageCount(); // Produces 1 instead of 60
      

      I would expect that animated gifs converted in QImage, would preserve the animation, or there would be an obvious way to do this in some other way.

       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            vgt Eirik Aavitsland
            Reporter:
            akiva Akiva Avraham
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes