Ticket #2661 (closed enhancement: wontfix)
Opened 6 years ago
Last modified 4 years ago
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 |
Description
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:
- It allows for the XML file to contain only a single image URL which would be an animated GIF.
- 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
Change History
comment:1 Changed 6 years ago by Rich.West@…
I should clarify that this patch is against the mythweather-revamp source.
comment:2 Changed 5 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 5 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 5 years ago by Rich.West@…
- Attachment animaps.pl added
Updated animaps.pl using Image::Magick module (when needed)
comment:4 Changed 5 years ago by anonymous
This is not working when base is: http://images.news8austin.com/media/weather/onair/ 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 animaps.pl, I get the static picture (the picture I reference above is an animated gif)
comment:5 Changed 5 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 4 years ago by stuartm
- Owner changed from ldunning to stuartm
- Status changed from new to assigned
- Milestone changed from 0.21 to 0.22
comment:7 Changed 4 years ago by stuartm
- Status changed from assigned to closed
- Resolution set to wontfix
As part of MythUI we'll probably implement something similar without using external scripts, using QTs QMovie class or similar.

patch to animaps.pl