Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. AnimatedImage - unable to read MNG files

AnimatedImage - unable to read MNG files

Scheduled Pinned Locked Moved QML and Qt Quick
7 Posts 2 Posters 3.7k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    SQEW
    wrote on last edited by
    #1

    Hi,

    I'd like to use MNG files (animated PNG) to display in an AnimatedImage element. This used to work flawlessly before, but I have installed a newer version of Kubuntu Linux in the meantime and whenever I try now the error 'Error Reading Animated Image File' appears. Animated gif files work fine.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you rebuild your application from scratch after the update ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SQEW
        wrote on last edited by
        #3

        Yes, several times. I'm using QtCreator 2.7.1 with Qt 5.0.2 that comes with the Ubuntu SDK package. I'm not keen on installing the official Qt distribution on top of that.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Check wether you have the mng plugin in the imageformats folder

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SQEW
            wrote on last edited by
            #5

            That must be it, when I do a locate -e libqmng, only this comes up

            /usr/lib/i386-linux-gnu/qt4/plugins/imageformats/libqmng.so

            This file is not present under the qt5 folder, I tried copying it and then recompiling my project but it still gives me the same error.

            There's also a qt5 imageformats package for my distribution but unfortunately not my specific revision (13.04 raring ringtail), I'm guessing the repository has some catching up to do. Thanks for the tip

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              It won't help since it's build for Qt 4.

              As an alternative, you can also get Qt 5 sources and only build the mng plugin

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SQEW
                wrote on last edited by
                #7

                I uninstalled the repository version and installed the official Qt 5.1 distribution instead. Works fine now.

                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