Closed GoogleCodeExporter closed 9 years ago
Hi,
Thanks for the report!
Yes, this is a known limitation now.
*Reasoning:*
it was decided not to support "Restore to previous" in WebP format, as it
imposes severe demands for the decoder/viewer.
To quote the recommendation in GIF spec
(http://www.w3.org/Graphics/GIF/spec-gif89a.txt):
---
e. Recommendations.
i) Disposal Method - The mode Restore To Previous is intended to be
used in small sections of the graphic; the use of this mode imposes
severe demands on the decoder to store the section of the graphic
that needs to be saved. For this reason, this mode should be used
sparingly. This mode is not intended to save an entire graphic or
large areas of a graphic; when this is the case, the encoder should
make every attempt to make the sections of the graphic to be
restored be separate graphics in the data stream. In the case where
a decoder is not capable of saving an area of a graphic marked as
Restore To Previous, it is recommended that a decoder restore to
the background color.
---
*Solution:*
Given that, it is still possible to exactly convert such a GIF image (which
uses GIF_DISPOSE_RESTORE) to WebP exactly -- by preserving earlier frame(s)
during conversion, and then creating WebP frames by blending previous and
current frames. This would take more memory at conversion time, but would
remain efficient at decode/viewing time.
This is in my TODO list.
Original comment by urv...@google.com
on 21 Mar 2013 at 11:39
Urvang: looks like we can now emulate this mode with latest util code, can't we?
Original comment by pascal.m...@gmail.com
on 8 Oct 2013 at 1:08
Sounds great, can retest this issue for the next release.
Original comment by file.xtr...@gmail.com
on 8 Oct 2013 at 8:19
Urvang, what's the status on this one?
Original comment by jz...@google.com
on 18 Dec 2013 at 5:43
This is a bit involved, but I have an idea that should work. I plan to work on
it in near future.
Original comment by urv...@chromium.org
on 19 Dec 2013 at 1:48
I just added GIF_DISPOSE_RESTORE support in:
https://gerrit.chromium.org/gerrit/#/c/71990/
(This will be submitted shortly).
Original comment by urv...@google.com
on 23 Oct 2014 at 12:04
Original issue reported on code.google.com by
file.xtr...@gmail.com
on 21 Mar 2013 at 9:35Attachments: