<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Decoding of animated PNG (APNG) is not optimized for memory usage."
   href="https://bugs.webkit.org/show_bug.cgi?id=146205#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Decoding of animated PNG (APNG) is not optimized for memory usage."
   href="https://bugs.webkit.org/show_bug.cgi?id=146205">bug 146205</a>
              from <span class="vcard"><a class="email" href="mailto:clopez&#64;igalia.com" title="Carlos Alberto Lopez Perez &lt;clopez&#64;igalia.com&gt;"> <span class="fn">Carlos Alberto Lopez Perez</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=146205#c2">comment #2</a>)
<span class="quote">&gt; Created <span class=""><a href="attachment.cgi?id=261090&amp;action=diff" name="attach_261090" title="v01.patch">attachment 261090</a> <a href="attachment.cgi?id=261090&amp;action=edit" title="v01.patch">[details]</a></span>
&gt; v01.patch
&gt; 
&gt; Only decode the frames up to haltAtFrame</span >

Thanks for the patch Max.

I have tested it, and it fixes the problem with the memory consumption completely.


The problem now is that I can see some artifacts on the imagen.

I have taken two screen-shoots to show you what I'm talking about:

 * <a href="http://people.igalia.com/clopez/apngmem/artifacts/while_playing.png">http://people.igalia.com/clopez/apngmem/artifacts/while_playing.png</a> This how the image looks on the MiniBrowser after playing it for some seconds. The numbers on the nodes showing the network traffic are blurry. Looks like if the numbers from the previous frames were not cleared somehow.

<a href="http://people.igalia.com/clopez/apngmem/artifacts/after_resize_window.png">http://people.igalia.com/clopez/apngmem/artifacts/after_resize_window.png</a> This is what happens if I resize the window of the MiniBrowser while it plays the animation. The image gets completely messed up.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>