cancel
Showing results for 
Search instead for 
Did you mean: 

Using GIF Files in TOuchGFX

PBU
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
Martin KJELDSEN
Chief III

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

View solution in original post

3 REPLIES 3
Martin KJELDSEN
Chief III

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
Associate III

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
Chief III

> .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