FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
04-05-2024 03:44 PM - last edited on 04-08-2024 07:54 AM by HmiGuide
Hi everyone,
regarding WebIQ I would like to stop a .GIF image based on the value of a variable. For example, I want the image of a conveyor to be animated while the machine is running, while if it is stopped I also want to stop the .GIF animation.
Is there a possibility to do this with CSS properties or another way?
Alternatively I was thinking of using 2 images, a GIF and a static image of the same transporter. This way I just have to change the image path based on the value of a variable. This idea is inconvenient because I have to create a static image for each .GIF image.
How can I proceed? Thank you
Solved! Go to Solution.
04-05-2024 04:02 PM
04-08-2024 08:22 AM
From a web standpoint switching between a GIF animation and a static GIF would be the cleanest solution. As you can see there is no simple way with web technology to stop a GIF and you have to use some quirks to get it done. This means that almost nobody is using this so it's best from a future-proof standpoint to simply switch between a static and an animated GIF using WebIQ's ImageChanger widget.
Also, you can simply use free open-source tools like ImageMagick or FFMPEG to extract frames from a GIF which will probably make it easier for you.