Opened 15 years ago

Closed 13 years ago

#2661 closed enhancement (wontfix)

Allow for animated GIF images to be displayed when viewing animated maps

Reported by: Rich.West@… Owned by: stuartm
Priority: minor Milestone: 0.22
Component: mythweather Version: head
Severity: low Keywords: animated gif
Cc: Ticket locked: no


Mythweather does not have the ability to display animated GIF images. When it displays the animated maps, it takes, from the XML file, a list of still images, and displays them in order to give the appearance of an animated image.

Some sources provide an animated GIF image, but, when this single animated GIF image is provided as a source, MythWeather? only displays the GIF as a still image. Hence, it looses it's animation.

This patch does two things:

  1. It allows for the XML file to contain only a single image URL which would be an animated GIF.
  2. It updates the script to use ImageMagick? to split apart the animated GIF in to its individual frames.

The assumption that is made here is that IF only one image is supplied in the <animated></animated> section, then it is an animated GIF image.

Attachments (2)

patch (3.4 KB) - added by Rich.West@… 15 years ago.
patch to (3.7 KB) - added by Rich.West@… 14 years ago.
Updated using Image::Magick module (when needed)

Download all attachments as: .zip

Change History (9)

Changed 15 years ago by Rich.West@…

Attachment: patch added

patch to

comment:1 Changed 15 years ago by Rich.West@…

I should clarify that this patch is against the mythweather-revamp source.

comment:2 Changed 14 years ago by ldunning

Definitely useful functionality to have. However, it would be better to use a suitable perl module instead of using system() and convert. This will help keep things portable (a main reason for using perl). Also, whatever dependencies this adds, they will have to be checked for during ./configure.

comment:3 Changed 14 years ago by anonymous

OK.. After a little digging, I've made it completely portable by using the Image::Magick perl module and I have re-attached it here. I am only looking at the scripts directory itself, not the source for mythweather-revamp, so I haven't even looked at the configure script.

Changed 14 years ago by Rich.West@…

Attachment: added

Updated using Image::Magick module (when needed)

comment:4 Changed 14 years ago by anonymous

This is not working when base is: and the only image is: RADAR_TRAVIS-large.gif

Going into Mythweather it just hangs in "Retrieving weather data". If I put back the old, I get the static picture (the picture I reference above is an animated gif)

comment:5 Changed 14 years ago by anonymous

QT supports animated gifs and pngs. Supporting them in mythweather should be looking at using this support instead of cutting up the original image into it's component frames.

comment:6 Changed 14 years ago by stuartm

Milestone: 0.210.22
Owner: changed from ldunning to stuartm
Status: newassigned

comment:7 Changed 13 years ago by stuartm

Resolution: wontfix
Status: assignedclosed

As part of MythUI we'll probably implement something similar without using external scripts, using QTs QMovie class or similar.

Note: See TracTickets for help on using tickets.