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. gif uses a lot of memory, qml
Forum Updated to NodeBB v4.3 + New Features

gif uses a lot of memory, qml

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 2 Posters 582 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.
  • Q Offline
    Q Offline
    qAminzzz
    wrote on last edited by
    #1

    hi, i wanna use a gif in my app but it uses a lot of memory
    how can i use a gif that uses less memory? something like telegram animated stickers (telegram animated stickers use 6 time less than average photo)

    thanks in advanced

    jsulmJ 1 Reply Last reply
    0
    • Q qAminzzz

      hi, i wanna use a gif in my app but it uses a lot of memory
      how can i use a gif that uses less memory? something like telegram animated stickers (telegram animated stickers use 6 time less than average photo)

      thanks in advanced

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @qAminzzz Please provide more information!
      How big is this Gif image?
      How much memory does your app consume when you use this Gif compared to same app without this Gif?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      Q 1 Reply Last reply
      0
      • jsulmJ jsulm

        @qAminzzz Please provide more information!
        How big is this Gif image?
        How much memory does your app consume when you use this Gif compared to same app without this Gif?

        Q Offline
        Q Offline
        qAminzzz
        wrote on last edited by
        #3

        @jsulm
        thanks for answer
        the gif: https://dribbble.com/shots/4202707-A-little-graph

        size of the gif: 2 mb
        Code:

            AnimatedImage
            {
                width: 37
                height: 28
                scale: 0.7
                source: "Icons/gifIcon.gif"
                anchors.left: parent.left
                anchors.top: parent.top
                transform: Translate {x: 17; y: 2}
                z: 10
            }
        

        i wanna set it icon of my app ( i used Qt.FramelessWindowHint )

        my app with the gif: 440 mb
        without: 130 mb

        this size is really huge
        sorry for late reply

        Q 1 Reply Last reply
        0
        • Q qAminzzz

          @jsulm
          thanks for answer
          the gif: https://dribbble.com/shots/4202707-A-little-graph

          size of the gif: 2 mb
          Code:

              AnimatedImage
              {
                  width: 37
                  height: 28
                  scale: 0.7
                  source: "Icons/gifIcon.gif"
                  anchors.left: parent.left
                  anchors.top: parent.top
                  transform: Translate {x: 17; y: 2}
                  z: 10
              }
          

          i wanna set it icon of my app ( i used Qt.FramelessWindowHint )

          my app with the gif: 440 mb
          without: 130 mb

          this size is really huge
          sorry for late reply

          Q Offline
          Q Offline
          qAminzzz
          wrote on last edited by
          #4

          @qAminzzz if can't to do this please say, thank you):

          jsulmJ 1 Reply Last reply
          0
          • Q qAminzzz

            @qAminzzz if can't to do this please say, thank you):

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @qAminzzz In how many places in your app do you use this Gif?
            Did you try any other animated Gif file to see whether it also leads to high memory consumption?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            Q 1 Reply Last reply
            0
            • jsulmJ jsulm

              @qAminzzz In how many places in your app do you use this Gif?
              Did you try any other animated Gif file to see whether it also leads to high memory consumption?

              Q Offline
              Q Offline
              qAminzzz
              wrote on last edited by
              #6

              @jsulm i used other gifs and
              any gif increments app size at least 100 mb

              i wanna use gif just for icon of app (just one place)

              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