Opened 17 years ago
Closed 16 years ago
#2661 closed enhancement (wontfix)
Allow for animated GIF images to be displayed when viewing animated maps
Reported by: | 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 (2)
Change History (9)
comment:1 Changed 17 years ago by
I should clarify that this patch is against the mythweather-revamp source.
comment:2 Changed 17 years ago by
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 17 years ago by
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 17 years ago by
Attachment: | animaps.pl added |
---|
Updated animaps.pl using Image::Magick module (when needed)
comment:4 Changed 17 years ago by
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 17 years ago by
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 16 years ago by
Milestone: | 0.21 → 0.22 |
---|---|
Owner: | changed from ldunning to stuartm |
Status: | new → assigned |
comment:7 Changed 16 years ago by
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
As part of MythUI we'll probably implement something similar without using external scripts, using QTs QMovie class or similar.
patch to animaps.pl