Skip to main content
PBU
Associate III
September 19, 2019
Solved

Using GIF Files in TOuchGFX

  • September 19, 2019
  • 3 replies
  • 2009 views

Is it possible to use .gif format files in TouchGFX?

This topic has been closed for replies.
Best answer by Martin KJELDSEN

Hi @PBU​,

.gif files aren't supported directly, but you can use some third party tool to extract all your frames from a gif and then use them in an

AnimatedImage

It's available through the designer; Try it out, if you haven't already. Basically what you'll do is name your images myimage_0.png through myimage_N.png, where N is the number (and image) in the sequence. You'll tell TouchGFX what the start and end image is and it'll cycle through them all - either once, looped, reversed, etc.

/Martin

3 replies

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
September 20, 2019

Hi @PBU​,

.gif files aren't supported directly, but you can use some third party tool to extract all your frames from a gif and then use them in an

AnimatedImage

It's available through the designer; Try it out, if you haven't already. Basically what you'll do is name your images myimage_0.png through myimage_N.png, where N is the number (and image) in the sequence. You'll tell TouchGFX what the start and end image is and it'll cycle through them all - either once, looped, reversed, etc.

/Martin

PBU
PBUAuthor
Associate III
September 20, 2019

Hi Martin,

Thank you. I'm already using AnimatedImage by using set of .png images as you said. I would like to know is there anyway to load .gif directly :grinning_face:

Martin KJELDSEN
Principal III
September 20, 2019

> .gif files aren't supported directly

There isn't. At most the designer might include some tool to do the frame split for you, but that's pretty far down the list :)

/Martin