GNOME Bugzilla – Bug 792602
Animated GIF screenshots only display first frame
Last modified: 2018-01-24 17:59:56 UTC
Originally filed on launchad at https://bugs.launchpad.net/ubuntu/+source/gnome-software/+bug/1743429 I am running GNOME Software on Ubuntu 16.04. If I look for Tizonia, it shows the app description and a static screenshot. The media uploaded to the store is actually a gif, but GNOME Software doesn't seem to support it. Steps to reproduce * Open GNOME Software * Search for tizonia * Wait for screenshot to load Expected behaviour * Animated gif plays in the page for the application Actual behaviour * Only the first frame of the animated gif is displayed. See screenshot attached. This is the media as it has been uploaded to the store:- https://dashboard.snapcraft.io/site_media/appmedia/2017/12/tizonia-usage-screencast.gif
I don't think we want that - the support for only PNG images is quite deliberate, and built into AppStream. What we could think of at some point is to allow videos to be shown, but in that case I would also like to limit the allowed codec/container format. With regards to "only PNG" support, the AppStream specification is very upfront, so I don't think the fact that no animations are shown should be surprising to the user.
The wording from the AppStream spec is (Section 2.1.3): "They should also be in be in PNG or JPEG format. PNG is the preferred format; JPEG should only be used when screenshots include large photographs or other images where a lossy format like JPEG may compress better." This is currently worded as a recommendation, not a strict requirement. It's not clear if an AppStream client should work with images formats other than PNG/JPEG. In this particular case this data comes from snapd, which is not using AppStream. So GNOME Software could support other formats outside the AppStream spec, if this was considered reasonable. GIF seems like a candidate for this.
If you create a GtkImage and set the provided .gif it does animate, so it seems likely that somewhere inside GNOME Software the animation information is lost - perhaps when the image is scaled.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-software/issues/291.