Closed Bug 990702 Opened 12 years ago Closed 8 years ago

[User Story] Support animated GIF format for wallpaper

Categories

(Firefox OS Graveyard :: Gaia::System::Lockscreen, defect)

x86
macOS
defect
Not set
normal

Tracking

(tracking-b2g:backlog)

RESOLVED WONTFIX
tracking-b2g backlog

People

(Reporter: caseyyee.ca, Unassigned)

Details

(Whiteboard: ux-tracking, visual-refresh, [ucid:System191])

User Story

As a user I want to be able to use animated GIFs as my wallpaper to make my lockscreen more interesting.

Acceptance Criteria:
1. So long as the wallpaper source (Gallery, Wallpapers, third party apps) have animated GIFs, I am able to choose an animated GIF files for my wallpaper.
2. After choosing an animated GIF (from AC1), the wallpaper that I replaced is updated to display the animated GIF.
3. While the screen is off the animation for an animated GIF wallpaper stops.
4. While the screen is on the animation for an anitmated GIF wallpaper plays based on the parameters defined by the GIF file.
The user should be able to assign a animated GIF to the phones Wallpaper. Here is some examples of animated GIF's used on the lockscreen (as a proof of concept) https://www.youtube.com/watch?v=8k7rVBUNMTk https://www.youtube.com/watch?v=ahQ5m_KLGWY https://www.youtube.com/watch?v=DIWTuBCIXGc Some quick suggestions on why this may not be working. These are some comments extracted from the email thread on the issue: Greg Wang: "In the 'apps/wallpaper/js/pick.js', it seems that 'image/jpeg' now is set as the mime type, so this may be the problem." Casey Yee: "Best as I can tell, Canvas simply doesn't have any support animated frames." - When images are loaded into the canvas, all the frames are lost.
Summary: Support for animated GIF → Support animated GIF format for wallpaper.
Whiteboard: ux-tracking, visual-refresh
Target Milestone: --- → 1.5 S1 (9may)
User Story: (updated)
Summary: Support animated GIF format for wallpaper. → {User Story] Support animated GIF format for wallpaper
Whiteboard: ux-tracking, visual-refresh → ux-tracking, visual-refresh, [ucid:System191]
Summary: {User Story] Support animated GIF format for wallpaper → [User Story] Support animated GIF format for wallpaper
Casey, any idea what is required to deliver this?
Flags: needinfo?(kyee)
Target Milestone: 2.0 S1 (9may) → ---
Peter, the issue should be fairly easy to solve. We just need some other way of blobbing the GIF data so that the animation frames don't get thrown away which happens when we canvas.toBlob.
Flags: needinfo?(kyee)
blocking-b2g: --- → backlog
feature-b2g: --- → 2.1
Not tying specifically to 2.1 for now.
feature-b2g: 2.1 → ---
When we set wallpaper we try to do some cropping of the image to make it fit. That is where the canvas gets involved and animated gifs get converted to jpegs. Modifying Canvas to allow it to crop animated jpegs would probably be insanely hard. The solution is just to use animated wallpapers without modification so they don't lose their animation. Note that if we want to provide animated wallpapers in the set of built-in wallpapers, this will have memory and performance implications and may require significant changes to the Wallpaper app. This bug should probably be part of the Gaia::Wallpaper component and owned by the Media team, since it is not specific to lockscreen and the system app.
blocking-b2g: backlog → ---
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.