Gif image in Embedded wizard

85 views
asked Feb 24 in GUI Development by Geetha Maruthakutty
I have a gif image. How to include it in Embedded wizard screen so that I get the animated GIF image in the screen.

1 Answer

0 votes
answered Feb 24 by Paul Banach

Hello Geetha,

direct import for animated GIF is not possible. What can you do? Primarily, you should understand how EmWi handles animated bitmap resources. Especially, please note the expected layout of the provided image. As explain in this doc, the original image file has to contain all the frames arranged side by side. For this purpose:

Step 1: Extract from the GIF all the included images.

Step 2: Store the images in one large image file. The images should be arranged in columns/rows according to the order in which they should be shown.

Step 3: Include the resulting image file to Embedded Wizard similarly as you do with any other image.

Step 4: Configure the animation speed for the bitmap resource.

For the steps 1 and evtl. 2 you will find diverse online conversion services. There you can upload the gif and download all the images. You can also use an adequate graphic editor for this purpose.

As alternative: With EmWi 9.30 we have added the import for motion JPEG (MJPEG) files. In such case, you can convert the GIF in MJPEG (again there are online services to do this or you use a converter tool) and add the MJPEG to EmWi 9.30 similartly as you do with other regular image files.

Does it help you?

Best regards

Paul Banach

 

commented Feb 28 by Paul Banach
Hello Geetha,

can you provide us an example to analyze this?

Best regards

Paul Banach
commented Feb 28 by Geetha Maruthakutty
Hi Paul,

A normal gif imag‚Äče shows the flow without any time delay. Here there is delay(blink effect).It is also taking very long time to load this image. Any solution for that as well.
commented Feb 28 by Paul Banach
Hello Geetha,

can you provide us your example to analyze this?

Best regards

Paul Banach
commented Feb 28 by Geetha Maruthakutty

In the above attached image, a smoke effect is shown. This effect is not continous. Once all the frames are shown, it starts again from first frame with a delay. The delay is shown as in below image and again the smoke effect starts.

commented Feb 28 by Paul Banach
Hello Geetha,

based on your description I can't give any concrete indication for the problem. I would need to test and analyze it. Generally, delays during the playback of an animated bitmap are not expected. Can you verify whether the frames within the image file are composed correctly? And, of course, you can send me the image file for verification purpose. You can do this via e-mail support@embedded-wizard.de.

Anway, as mentioned in my preceding comments, the animated bitmaps are not optimized for large and/or long contents. Have you seen the comment of Martin (mli) concerning the integration of a video player?

Best regards

Paul Banach

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...