[Webkit-unassigned] [Bug 63314] New: Can only render first frame of animated gifs to canvas if image is hidden

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 23 23:40:43 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=63314

           Summary: Can only render first frame of animated gifs to canvas
                    if image is hidden
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
               URL: http://robothaus.org/bugs/gifs/gif-hidden-test.html
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Canvas
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: bobby at mozillafoundation.org
                CC: mdelaney at apple.com


When an animated gif is being rendered by an <img>, grabbing its pixels with a drawImage() is possible. But, as soon as that gif becomes invisible by any means other than simply moving it off the screen with, say, a negative "left" position, drawImage only grabs the first frame of the gif.

Can we not have the <img> tag continue to update when it's not displayed for the sake of using them in animations? WebGL textures would be super fun.

Test 1: http://robothaus.org/bugs/gifs/gif-hidden-test.html - canvas will update properly for 2 seconds, and then <img> will become invisible and canvas will stop updating, even though drawImage is still being called.

Test 2: http://cjcliffe.github.com/CubicVR.js/cubicvr/tests/gifs/gifs.html - WebGL texture fun with gif simply moved to 'left: -600px'.

I'm using chromium 12.0.742.100 (0).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list