Skip to main content
PBU
Associate III
Sep 19, 2019 2:25 PM UTC
Solved

Using GIF Files in TOuchGFX

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

This topic has been closed for replies.
Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
Sep 20, 2019 6:34 AM UTC

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
Sep 20, 2019 6:34 AM UTC

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
Sep 20, 2019 6:42 AM UTC

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
Sep 20, 2019 6:50 AM UTC

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