2. I hacked APNG support into Chromium and it's 100% functional, works just fine. For now, I put the code here:
http://sourceforge.net/projects/apng/files/Chromium/
I realize that patching two separate src/third_party/ projects (libpng and WebKit) is a serious obstacle. But it's not impossible, right?
3. APNG is actually in big demand now. People really like how simple-to-use GIFs are, and would love to have something just like that, but without color and alpha limitations. Look at crbug.com/1171, with 600 stars it's currently #10 most popular Chromium request. Also, look at APNG plugin for Chrome: it has 28000 users, and they must be visiting web pages with APNG files, otherwise they all would have no reason to install it.
So what do you guys think?
1. Presto supported APNG, so Opera devs would probably like not to lose that feature.
3. APNG is actually in big demand now. People really like how simple-to-use GIFs are, and would love to have something just like that, but without color and alpha limitations. Look at crbug.com/1171, with 600 stars it's currently #10 most popular Chromium request. Also, look at APNG plugin for Chrome: it has 28000 users, and they must be visiting web pages with APNG files, otherwise they all would have no reason to install it.
On Mon, Mar 18, 2013 at 5:20 AM, Max Stepin <new...@gmail.com> wrote:
1. Presto supported APNG, so Opera devs would probably like not to lose that feature.Presto had many differences from WebKit/Chromium. I imagine the Opera folks will decide on a case-by-case basis what they wish to do about those. For the moment, I wouldn't pre-emptively add APNG support with the explicit goal of minimizing differences with Presto.3. APNG is actually in big demand now. People really like how simple-to-use GIFs are, and would love to have something just like that, but without color and alpha limitations. Look at crbug.com/1171, with 600 stars it's currently #10 most popular Chromium request. Also, look at APNG plugin for Chrome: it has 28000 users, and they must be visiting web pages with APNG files, otherwise they all would have no reason to install it.We ignore stars on bugs; they're completely non-representative of anything regarding the userbase.
Does WebP support animation yet? (I know it's been planned.) I would assume that'd be the route we'd be interested in seeing as a long-term replacement for animated GIFs, given that it will compress better than PNG.I am curious as to the actual prevalence of APNGs in the wild. People installing a plugin doesn't tell me much. Someone who likes APNG as a format might pre-emptively install the plugin and then not actually encounter any such images. Servers might not serve APNGs to Chrome UA strings, and use GIFs instead. Overall, it's hard to know what the size of the benefit here is.Furthermore, if there is some sort of extension for this (you didn't link to the "plugin" you referred to), that might be a reasonable way to provide this kind of support.PK
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
On Mon, Mar 18, 2013 at 8:47 PM, Peter Kasting <pkas...@chromium.org> wrote:
We ignore stars on bugs; they're completely non-representative of anything regarding the userbase.
The latter is correct, but I wouldn't say that we ignore stars on bugs. They are a decent indicator of the relative importance of features compared to each other (and in fact we do tell people to star bugs they wish to be fixed), it's just that users who file/star bugs are not a representative subset of all of our users.
On Mon, Mar 18, 2013 at 5:20 AM, Max Stepin <new...@gmail.com> wrote:1. Presto supported APNG, so Opera devs would probably like not to lose that feature.Presto had many differences from WebKit/Chromium. I imagine the Opera folks will decide on a case-by-case basis what they wish to do about those. For the moment, I wouldn't pre-emptively add APNG support with the explicit goal of minimizing differences with Presto.3. APNG is actually in big demand now. People really like how simple-to-use GIFs are, and would love to have something just like that, but without color and alpha limitations. Look at crbug.com/1171, with 600 stars it's currently #10 most popular Chromium request. Also, look at APNG plugin for Chrome: it has 28000 users, and they must be visiting web pages with APNG files, otherwise they all would have no reason to install it.We ignore stars on bugs; they're completely non-representative of anything regarding the userbase.Does WebP support animation yet? (I know it's been planned.)
I would assume that'd be the route we'd be interested in seeing as a long-term replacement for animated GIFs, given that it will compress better than PNG.I am curious as to the actual prevalence of APNGs in the wild. People installing a plugin doesn't tell me much. Someone who likes APNG as a format might pre-emptively install the plugin and then not actually encounter any such images. Servers might not serve APNGs to Chrome UA strings, and use GIFs instead. Overall, it's hard to know what the size of the benefit here is.Furthermore, if there is some sort of extension for this (you didn't link to the "plugin" you referred to), that might be a reasonable way to provide this kind of support.PK
--
--
While it sucks to lose features through the switch of web engine, I don't
think APNG is high on the list of things to restore support for.
I'm sure nobody would be sad to see it return
In fairness, though, image decoders are classically a key vector for exploits.
So there is merit to the "we don't want the attack surface" argument just as there is merit to the "we don't want the maintenance surface" argument.
The issue is to what degree you perceive the pluses and minuses. I suspect on this one, the perception is of a very small plus and some relatively small minuses.
Well, minuses are small, but objectively, pushing obsolete and awkward-to-handle GIF format into retirement would be a big plus.
Do you believe that everyone would simply stop writing sites compatible with IE, Safari, and everything on iOS if Chromium supported APNG? If not, then claiming the plus here as "retiring GIF" is disingenuous.
I understand there's a chicken-and-egg issue here to some extent, but given that there's both an extension to add APNG support to Chromium, and also apparently a server-side polyfill that will translate APNG to canvas, it seems very unlikely that Chromium support is the deciding factor in widespread adoption.
This probably isn't the right place for this discussion yet though; since the libpng part of your change isn't useful without the WebCore changes, starting on a WebKit list with trying to get that change accepted seems like the first step.
Why does APNG require a patch to libpng? Why isn't APNG supported as part of libpng?
Well, minuses are small, but objectively, pushing obsolete and awkward-to-handle GIF format into retirement would be a big plus. "256 colors should enough for everybody" might have worked in 1989, but its 2013 now.
Why does APNG require a patch to libpng? Why isn't APNG supported as part of libpng?
I think the answer probably involves http://sourceforge.net/mailarchive/message.php?msg_id=131482. I am a bit nervous about supporting PNG extensions that the "PNG experts" have rejected. I don't know the basis for their rejections, etc.
Which is part of why I mentioned WebP. If we're going to bootstrap a replacement for animated GIFs anyway, it's reasonable to consider alternatives to APNG -- and WebP has some notable advantages.
It compresses better than PNG anyway, but crucially, APNGs don't do any kind of delta compression from one frame to the next -- each frame is considered in complete isolation. For animations longer than a few frames, this can mean APNGs blow up in size even compared to GIFs.
Thanks for digging up that history, Peter.
On Wednesday, March 20, 2013 2:30:37 AM UTC+4, Peter Kasting wrote:Which is part of why I mentioned WebP. If we're going to bootstrap a replacement for animated GIFs anyway, it's reasonable to consider alternatives to APNG -- and WebP has some notable advantages.
Don't you think your arguments against "APNG attack surface" might apply apply to increasingly complex WebP too? At least APNG is very simple with the nice fallback to static PNG for all other browsers. If it's "reasonable to consider alternatives to APNG " why can't we at first give a serious consideration to APNG itself? Wouldn't that be fair? We have not even touched any technical stuff yet.
On Wednesday, March 20, 2013 2:30:37 AM UTC+4, Peter Kasting wrote:Which is part of why I mentioned WebP. If we're going to bootstrap a replacement for animated GIFs anyway, it's reasonable to consider alternatives to APNG -- and WebP has some notable advantages.
Don't you think your arguments against "APNG attack surface" might apply apply to increasingly complex WebP too?
It compresses better than PNG anyway, but crucially, APNGs don't do any kind of delta compression from one frame to the next -- each frame is considered in complete isolation. For animations longer than a few frames, this can mean APNGs blow up in size even compared to GIFs.
I don't you're being fair, since it's completely false. Even GIFs can do deltas, and APNG can do everything GIF does. You absolutely can encode deltas in APNGs, just look at the "GIF vs. APNG" comparison here, it includes the filesizes:
http://littlesvr.ca/apng/gif_vs_apng.html
Absolutely, but we've already made a decision to include WebP, and that decision isn't what's at issue here.
I don't really see how this page proves either of our statements.
I would be very surprised if APNG can really "do everything that GIF does" since GIF does many things, a lot of them stupid. (I am pretty familiar with the GIF format, sadly.)