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.)
Hey Pascal,Why should user use animated WebP instead of just WebM in video tag? Displaying animated images uses a different pipeline than <video> that is much slower.
Hey Pascal,Why should user use animated WebP instead of just WebM in video tag? Displaying animated images uses a different pipeline than <video> that is much slower.
Hey Pascal,Why should user use animated WebP instead of just WebM in video tag?
Displaying animated images uses a different pipeline than <video> that is much slower.
On Thu, Mar 21, 2013 at 3:16 AM, Alpha Lam <hc...@chromium.org> wrote:
Hey Pascal,Why should user use animated WebP instead of just WebM in video tag?Because it's PHPBB-based site with engine from 10 years ago which allows upload of only .GIF/.PNG/.JPG? Where do you think all these animated GIFs are commonly used today?Displaying animated images uses a different pipeline than <video> that is much slower.May be, but any solution which pretends to be backward compatible should work with the limitations outlined above (img tag, only files with extensions .gif/.png/.jpg are allowed). Both APNG and WebP actually work fine in such situation while tag <video> obviously is a non-starter.
On Thu, Mar 21, 2013 at 5:59 PM, Victor Khimenko <kh...@chromium.org> wrote:
On Thu, Mar 21, 2013 at 3:16 AM, Alpha Lam <hc...@chromium.org> wrote:
Hey Pascal,Why should user use animated WebP instead of just WebM in video tag?Because it's PHPBB-based site with engine from 10 years ago which allows upload of only .GIF/.PNG/.JPG? Where do you think all these animated GIFs are commonly used today?Displaying animated images uses a different pipeline than <video> that is much slower.May be, but any solution which pretends to be backward compatible should work with the limitations outlined above (img tag, only files with extensions .gif/.png/.jpg are allowed). Both APNG and WebP actually work fine in such situation while tag <video> obviously is a non-starter.Hm, how would WebP work here if the extensions are limited to .png, .jpg and .gif?
APNG is actually the best (or only) choice here (not advocating or anything), if we are talking about this use case, due to full backward compatibility.
On Thu, Mar 21, 2013 at 8:35 PM, PhistucK <phis...@gmail.com> wrote:
See my comment inline.On Thu, Mar 21, 2013 at 5:59 PM, Victor Khimenko <kh...@chromium.org> wrote:
On Thu, Mar 21, 2013 at 3:16 AM, Alpha Lam <hc...@chromium.org> wrote:
Hey Pascal,Why should user use animated WebP instead of just WebM in video tag?Because it's PHPBB-based site with engine from 10 years ago which allows upload of only .GIF/.PNG/.JPG? Where do you think all these animated GIFs are commonly used today?Displaying animated images uses a different pipeline than <video> that is much slower.May be, but any solution which pretends to be backward compatible should work with the limitations outlined above (img tag, only files with extensions .gif/.png/.jpg are allowed). Both APNG and WebP actually work fine in such situation while tag <video> obviously is a non-starter.Hm, how would WebP work here if the extensions are limited to .png, .jpg and .gif?Save your webP animation with a .png extension. Problem solved.
APNG is actually the best (or only) choice here (not advocating or anything), if we are talking about this use case, due to full backward compatibility.
Well, yeah, but it does not look like people will start using it for animations till large enough proportion of web browsers will adopt it anyway - and on server side there are no problems as I've pointed out above: Most browsers are happy to accept PNG file with an .jpg extension or .gif under .png name. Chrome will accept webP if it's named something.png so and it's obvious other browsers can do the same, too.Which means that while from formal POV APNG has the best compatibility in practice webP works just as well - just in different browser.
P.S. And yes, it works even if web server serves said webP with "image/png" MIME type (as it should). And yes, I know it's blatant violation of standards.
And I can even understand why PNG experts say about APNG that it "was a repeat of some of the same mistakes made in the GIF format 10 years earlier" (http://en.wikipedia.org/wiki/APNG). But I'm practical guy. What I see are two solutions: one (GIF89a) have taken the world by storm and was quickly adopted more-or-less by everyone while another one (MNG) was spurned by everyone and after more then a decade is not used by anyone while everyone still uses GIF89a (with it's limitations of 256 colors and all) I can only sigh... it's just too sad for the words.P.P.S. I don't particularly care if Chrome will adopt APNG or if Firefox will adopt webP (both solutions will give us a pictures animation format which can be used by majority of browsers), but the situation when people are forced to continue to use GIF89a in 2013 looks worse to me then both these alternatives.
On Thu, Mar 21, 2013 at 3:16 AM, Alpha Lam <hc...@chromium.org> wrote:
Hey Pascal,Why should user use animated WebP instead of just WebM in video tag?Because it's PHPBB-based site with engine from 10 years ago which allows upload of only .GIF/.PNG/.JPG? Where do you think all these animated GIFs are commonly used today?Displaying animated images uses a different pipeline than <video> that is much slower.May be, but any solution which pretends to be backward compatible should work with the limitations outlined above (img tag, only files with extensions .gif/.png/.jpg are allowed). Both APNG and WebP actually work fine in such situation while tag <video> obviously is a non-starter.
2013/3/21 Victor Khimenko <kh...@chromium.org>On Thu, Mar 21, 2013 at 3:16 AM, Alpha Lam <hc...@chromium.org> wrote:
Hey Pascal,Why should user use animated WebP instead of just WebM in video tag?Because it's PHPBB-based site with engine from 10 years ago which allows upload of only .GIF/.PNG/.JPG? Where do you think all these animated GIFs are commonly used today?Displaying animated images uses a different pipeline than <video> that is much slower.May be, but any solution which pretends to be backward compatible should work with the limitations outlined above (img tag, only files with extensions .gif/.png/.jpg are allowed). Both APNG and WebP actually work fine in such situation while tag <video> obviously is a non-starter.Are you suggesting a new animated image format is backward compatible?
I don't think many of the new HTML5 features we're developing works in those 10 years old PHPBB sites.
I'd surprised to see this as an argument for developing something new.
Animated images do not render well in modern browsers and they hog Chrome performance.
<video> tag is newly designed and implemented to support high performance rendering. Animated images is technically backwards.Here's a list of performance bugs with animated GIFs.This animated GIF takes about the same CPU as playing this H264 video in 720p.
2013/3/21 Victor Khimenko <kh...@chromium.org>On Thu, Mar 21, 2013 at 3:16 AM, Alpha Lam <hc...@chromium.org> wrote:
Hey Pascal,Why should user use animated WebP instead of just WebM in video tag?Because it's PHPBB-based site with engine from 10 years ago which allows upload of only .GIF/.PNG/.JPG? Where do you think all these animated GIFs are commonly used today?Displaying animated images uses a different pipeline than <video> that is much slower.May be, but any solution which pretends to be backward compatible should work with the limitations outlined above (img tag, only files with extensions .gif/.png/.jpg are allowed). Both APNG and WebP actually work fine in such situation while tag <video> obviously is a non-starter.Are you suggesting a new animated image format is backward compatible? I don't think many of the new HTML5 features we're developing works in those 10 years old PHPBB sites. I'd surprised to see this as an argument for developing something new.Animated images do not render well in modern browsers and they hog Chrome performance. <video> tag is newly designed and implemented to support high performance rendering. Animated images is technically backwards.Here's a list of performance bugs with animated GIFs.This animated GIF takes about the same CPU as playing this H264 video in 720p.
On Thu, Mar 21, 2013 at 10:52 PM, Alpha (Hin-Chung) Lam <hc...@google.com> wrote:
2013/3/21 Victor Khimenko <kh...@chromium.org>On Thu, Mar 21, 2013 at 3:16 AM, Alpha Lam <hc...@chromium.org> wrote:
Hey Pascal,Why should user use animated WebP instead of just WebM in video tag?Because it's PHPBB-based site with engine from 10 years ago which allows upload of only .GIF/.PNG/.JPG? Where do you think all these animated GIFs are commonly used today?Displaying animated images uses a different pipeline than <video> that is much slower.May be, but any solution which pretends to be backward compatible should work with the limitations outlined above (img tag, only files with extensions .gif/.png/.jpg are allowed). Both APNG and WebP actually work fine in such situation while tag <video> obviously is a non-starter.Are you suggesting a new animated image format is backward compatible?Yes. Note that we already have perfectly well-supported non-backward-compatible animated image format: SVG. Unfortunately it's can not be used in many places where APNG (or webP) can be used.I don't think many of the new HTML5 features we're developing works in those 10 years old PHPBB sites.Depends on what plugins to PHPBB are installed and how they use these HTML5 features. Actually it's just "living standard called html" now because we don't want to force to upgrade the whole infrastructure all-at-once.I'd surprised to see this as an argument for developing something new.Why not? Backward-compatibility is very important argument and it often trumps other considerations. Or do you know any OTHER reason not to follow up with our own promise: http://blog.chromium.org/2011/01/html-video-codec-support-in-chrome.html ?
Animated images do not render well in modern browsers and they hog Chrome performance.Then this must be fixed (if it can be fixed). People are using them and they will use them no matter what we do. It's the question of "will they use animated images or <video> tag?" but rather "will they continue to use GIF89a or can we offer something better?".
<video> tag is newly designed and implemented to support high performance rendering. Animated images is technically backwards.Here's a list of performance bugs with animated GIFs.This animated GIF takes about the same CPU as playing this H264 video in 720p.Good example. Please give me an URL with "H264 video" analogue of the first GIF on photobucket.com and we'll have a deal. Or, better yet, please reply to my mail with another one where <video> tag is used in place of the following picture:
Gmail is nice modern HTML5 application so why it's so hard if nice modern <video> tag is ready to replace GIF89a and APNG?
We certainly could GPU accelerate gifs, we could even transparently translate them into WebP. pdr@ had even mentioned GPU acceleration for gifs recently.
In terms of features does APNG support hardware decoding? Does it support seeking? Does it support audio? I don't think animated images will ever be better than <video>, video tag is clearly a better offer in terms of technical capabilities.
2013/3/21 Victor Khimenko <kh...@chromium.org>On Thu, Mar 21, 2013 at 10:52 PM, Alpha (Hin-Chung) Lam <hc...@google.com> wrote:
2013/3/21 Victor Khimenko <kh...@chromium.org>On Thu, Mar 21, 2013 at 3:16 AM, Alpha Lam <hc...@chromium.org> wrote:
Hey Pascal,Why should user use animated WebP instead of just WebM in video tag?Because it's PHPBB-based site with engine from 10 years ago which allows upload of only .GIF/.PNG/.JPG? Where do you think all these animated GIFs are commonly used today?Displaying animated images uses a different pipeline than <video> that is much slower.May be, but any solution which pretends to be backward compatible should work with the limitations outlined above (img tag, only files with extensions .gif/.png/.jpg are allowed). Both APNG and WebP actually work fine in such situation while tag <video> obviously is a non-starter.Are you suggesting a new animated image format is backward compatible?Yes. Note that we already have perfectly well-supported non-backward-compatible animated image format: SVG. Unfortunately it's can not be used in many places where APNG (or webP) can be used.I don't think many of the new HTML5 features we're developing works in those 10 years old PHPBB sites.Depends on what plugins to PHPBB are installed and how they use these HTML5 features. Actually it's just "living standard called html" now because we don't want to force to upgrade the whole infrastructure all-at-once.I'd surprised to see this as an argument for developing something new.Why not? Backward-compatibility is very important argument and it often trumps other considerations. Or do you know any OTHER reason not to follow up with our own promise: http://blog.chromium.org/2011/01/html-video-codec-support-in-chrome.html ?I really don't see the point of mentioning this post. Ever since there's HTML5 <video> in Chrome/Chromium, there's Theora support, WebM was added later after it was announced.
Animated images do not render well in modern browsers and they hog Chrome performance.Then this must be fixed (if it can be fixed). People are using them and they will use them no matter what we do. It's the question of "will they use animated images or <video> tag?" but rather "will they continue to use GIF89a or can we offer something better?".I think we should fix these performance issues first before considering supporting any new animated formats. It'll be great if there's volunteers to fix these issues.In terms of features does APNG support hardware decoding? Does it support seeking? Does it support audio? I don't think animated images will ever be better than <video>, video tag is clearly a better offer in terms of technical capabilities.
<video> tag is newly designed and implemented to support high performance rendering. Animated images is technically backwards.Here's a list of performance bugs with animated GIFs.This animated GIF takes about the same CPU as playing this H264 video in 720p.Good example. Please give me an URL with "H264 video" analogue of the first GIF on photobucket.com and we'll have a deal. Or, better yet, please reply to my mail with another one where <video> tag is used in place of the following picture:Gmail is nice modern HTML5 application so why it's so hard if nice modern <video> tag is ready to replace GIF89a and APNG?
Why shouldn't the Web move to modern HTML5 applications?
There's youtube, vimeo, etc.
You keep getting back to specific web sites but didn't mention the technical advantages of <video> over animated images.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
Last time the APNG support idea was mentioned here on Chromium-dev, it was met with some skepticism, though not outright rejection:
https://groups.google.com/a/chromium.org/d/topic/chromium-dev/0eL52wJPQhw/discussion
But some things changed since then, so maybe it's time to reconsider?
1. Presto supported APNG, so Opera devs would probably like not to lose that feature.
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?
My answer for WebP and APNG fans!https://github.com/acterhd/APNG
четверг, 13 ноября 2014 г., 3:13:03 UTC+8 пользователь Max Stepin написал:
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
--
I shared apng2gif and apng2webp conversion tools.
пятница, 3 апреля 2015 г., 19:16:46 UTC+8 пользователь PhistucK написал:
My answer for WebP and APNG fans!
https://github.com/acterhd/APNG
четверг, 13 ноября 2014 г., 3:13:03 UTC+8 пользователь Max Stepin написал:
Thanks for the pointers.
I removed extensions. Just paste detect.js, and will automaticly pickup image source.
пятница, 3 апреля 2015 г., 21:22:13 UTC+8 пользователь PhistucK написал:
So is there any estimation as to when APNG will be put into Chrome by the official devs?
--
I could use the argument that apng can deal with a transparent background while gif must have - at the least - an alpha background. Just think about it and see if it could be an added option in the chrome://flags page.
both for previews such as on Kickstarter and for ease of sharing