gif uses a lot of memory, qml
-
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
-
@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?@jsulm
thanks for answer
the gif: https://dribbble.com/shots/4202707-A-little-graphsize 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 mbthis size is really huge
sorry for late reply -
@jsulm
thanks for answer
the gif: https://dribbble.com/shots/4202707-A-little-graphsize 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 mbthis size is really huge
sorry for late reply -
@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?