Presenting APNG: Like MNG, Only Better 424
"Unlike MNG, APNG is not a separate file format, but rather an extension to PNG. Thus, APNG images are just normal PNG images (with the .png extension) but can be animated. The system is fully backwards-compatable, so any program that can open a PNG image will be able to open an APNG image (though non-APNG viewers will only show the first frame). Vitally, the decoder just adds an extra few kilobytes onto a standard PNG decoder. APNG support is in the process of being checked into Mozilla. Hopefully, other programs will follow suit."
Too bad we can't use it (Score:5, Funny)
Re:Too bad we can't use it (Score:2)
They'll develop a DRM encumbered one.. (Score:5, Insightful)
The official press release would be something like "We feel that this new open (to IE) format will provide the much needed protection against web site theft and give necessary control to Microsoft over your own content."
Would it surprise you?
Re:Too bad we can't use it (Score:4, Insightful)
Sarcasm aside, this is a valid point. If IE doesn't support it, most authors won't use it on their web pages, and there aren't any IE updates scheduled any time soon...
Re:Too bad we can't use it (Score:4, Informative)
I hate the fact that when IE loads my PNGs with alpha it gives it an ugly solid bluish background. You have to hack it [eae.net] just to get my damned images to display correctly in IE. As a result, no one uses regular PNGs.
Re:Too bad we can't use it (Score:5, Informative)
If you don't want to use the ugly IE5.5+ hack for alpha PNGs, you can at least set the background color setting in the PNG, which IE will use to blend into. I think you can set the background color tag from a pngcrush command line parameter if your software doesn't support that feature.
For example alpha-msg.png [ark42.com] should show a message written in magenta (the background color) if your browser blends using the background color of the PNG instead of the background color of the page. If your background color is white, you won't see any message if you are using Mozilla/Firefox/Opera. If you put that image in a div with a white background and use a IE5.5+ alpha hack of some sort, the image's message actually makes sense too.
Re:Too bad we can't use it (Score:3, Funny)
Re:Too bad we can't use it (Score:2, Funny)
You optimist
Re:Too bad we can't use it (Score:4, Interesting)
(sarcasm)You think it'll be that quick, do you?(/sarcasm)
All jokes aside, I wouldn't be so sure of that. If FireFox and Mozilla make as much inroads into the browser market as some people think it will then Microsoft will either have to pull their finger out and keep IE up-to-date and standards-compliant or drop out of the market - something I seriously doubt will happen.
FireFox is already a long way there. One department at work got so sick of the pop-up infested site they needed to use for some of their work that they demanded something be done about it. Our MIS deparment said nothing could be done until I suggested (and proofed) FireFox. Now it's a standard browser for that department and is being looked at for the rest of the organisation as well.
The burning question is... (Score:5, Insightful)
Oh, and yeah, I'm sure someone will make it work with The Gimp, so don't flog me over that detail.
It's all about Microsoft (Score:4, Interesting)
WIP (Score:5, Informative)
Don't hate it (Score:5, Insightful)
Now that Unisys's patent has expired across the globe, I certainly don't hate GIFs.
Re:Don't hate it (Score:4, Informative)
Re:Don't hate it (Score:4, Interesting)
I'll give you the transparency (which IE does not support on PNG without gross hacks) but GIF supports infinite colors basically, in increments of 256.
gif-with-32697-colors [ark42.com]
Re:Don't hate it (Score:3, Insightful)
Re:Don't hate it (Score:5, Insightful)
Re:Don't hate it (Score:2)
Re:Don't hate it (Score:5, Interesting)
It's a very neat trick. I remember marvelling at it the last time it came round.
It works because each frame in an animated GIF has its own palette --- but that palette doesn't have to match the palette in the other frames. So the first frame draws the first 256 colours, then the second frame draws the next, etc. The test image has been slowed down so you can see it load.
Of course, it's not actually useful --- the resulting image is far larger than, say, the PNG version --- but it's a clever hack anyway and I wish I'd thought of it...
Re:Don't hate it (Score:5, Informative)
Actually, there is no point getting an infinite number of colours because:
1) Most displays cannot show that many colour
2) Even with a display that does 16 777 216 colours, the human eye cannot distinguish between that many shades (particularly in the blue region) which is why 16 bit colour (which has 5 + 6 + 5 bits to divide amongst the red, green & blue) puts the extra information into the green (I think, could also be red, but its never the blue)
3) Most RGB displays, while they have gradations finer than the eye can distinguish, cannot show the full spectrum in width (from 400nm to 700nm wavelengths). You can put as many bits as you want on to any consumer display, there are colours it simply cannot do.
4) Humans vary in their ability to see colour, making alot of the finer gradations imprecise. 8% of males have altered colour vision - as do a small percentage of women and those bits are really wasted on them. On the other hand, if you have had cataract surgery, the implantable lens will let in low end ultraviolet (which your retina can see) that our natural lens does not allow through. Not that I'm suggesting that it is good to see into the UV range
My 2c worth
Michael
Re:Don't hate it (Score:3, Interesting)
Actually, from what I understand, we're least sensitive to variations in red. Which is very funny, because it's the colour our eyes are most sensitive to -- we just can't pick out subtle variations in that colour.
I hope that makes sense? sensitive to red itself, but not to the differences in various shades of red.
Re:Don't hate it (Score:5, Interesting)
While it may seem counterintuitive, the human eye is much better at discriminating between shades of blue than between red or green (where it is worst by far). There's a nice graph showing the MacAdam ellipses that represent the amount of variation in chromaticity where no difference can be percieved in this paper [lcavwww.epfl.ch]. This is obviously different from the responsiveness to brightness.
16 bit color representaion usually has the 6 bits for green.
For most people, 8 bit per RGB component on an linear scale, as used in almost all computers, is not enough - you can still see some banding. A logarithmic scale or 10 bit color can fix this.
Re:Don't hate it (Score:3, Interesting)
You are assuming that everybody's cones respond to the same wavelengths identically. That is most definitely not true. Different people's eyes respond to colors differently -- different people's cones have response curves centered at slightly different shades of red, green, and blue. In fact, some women have been found to have 4 different kinds of cones.
There are two ways to produce a perception of c
Re:Don't hate it (Score:2)
Re:Don't hate it (Score:5, Informative)
Re:Don't hate it (Score:3, Informative)
And, by talking this way, you are using the term "lossy" in a way that nobody else uses. Hence the confusion. Hence the request to use the word "lossy" to describe the actual compression of data, rather than the quantization of the image.
If you compress a 256 color image using JPEG, what comes out isn't what you put in. That's why JPEG is called a lossy format. GIF is lossless.
Re:Don't hate it (Score:5, Funny)
Not to be confused with omnipotent which means the ability to get anything -- male, female, animate, inanimate -- pregnant. If you're omnipotent, the condom gets pregnant.
Re:Don't hate it (Score:5, Interesting)
GIF is gunk. Can we step into the 21st century yet?
Re:Don't hate it (Score:3, Insightful)
Yes... now if only MSIE would correctly render alpha transparency in PNGs (without resorting to absurd coding tricks).
Re:Don't hate it (Score:4, Insightful)
Animations (Score:5, Funny)
Two Uses of Flash (Score:5, Informative)
There are only two valid reasons to include Flash in a web document: sound (for which there should be a global setting in the Flash plugin) and stick fights [stickpage.com] (SVG anyone?). Everything else does nothing but reduce useability and accessibility. The absolute kicker are flash intros with the skip button embedded instead of a normal link.
And: what do you need flash or MNG/APNG for if all you want is a red/green-annoyance? To make really good fakes of Luna GUI elements?
Good to hear (Score:5, Insightful)
Well now, this sounds really nice. I have always wondered why MGN never really took off, but then PNG never really took off either (you all know the MSFT story...). Just never knew this had a big-decoder-problem.
So naturally I was disappointed when Mozilla took out MNG support back then, but this seems to make it better (read: more chances of survival in the real world out there) standard, and that is always a good thing.
One more reason to finally get rid of all them GIFs, even if they are no longer patent-encumbered - the format is still not capable of alpha transparency...
Re: (Score:2)
Re:Good to hear (Score:5, Insightful)
We don't like bloat now do we (Score:5, Funny)
Yeah, and a damn good thing too, otherwise we'd have a browser that's so huge and bloated that...
Nevermind...
Re:We don't like bloat now do we (Score:2, Interesting)
That said, Firefox seems pretty quick to me.
What is the greater of two evils... (Score:3, Funny)
?$!@...@!$?
Stupid Question (Score:5, Interesting)
Re:Stupid Question (Score:4, Interesting)
This is better then any alternative java or javascript crap I have seen.
Re:Stupid Question (Score:2, Funny)
Define "better solution" (Score:5, Insightful)
Re:Stupid Question (Score:5, Informative)
For an example, check out weather.com's "map in motion" for your locale. Then, check the source of the page. Much cleaner to simply have an <img> tag.
Re:Stupid Question (Score:2)
Re:Stupid Question (Score:3, Interesting)
You don't have to use javascript to sequence jpegs for an animation effect. You can instead stream a recorded or live "jpeg video" by using the 'multipart/x-mixed-replace; boundary=xxxfoobarxxx' mime-type with a frame delay between the boundary. The downside is that you need to keep a persistant connection open to the webserver for the duration of the vid.
This isn't commonly done anymore, but it is how the first postage-stamp
Re:Stupid Question (Score:3, Informative)
This isn't commonly done anymore...
Probably the biggest reason being that IE on Windows doesn't support it (surprise, surprise)...
Re:Stupid Question (Score:2)
Whether that is of any use is another matter
Re:Stupid Question (Score:2)
Good point. OS X did this with PDFs for things like the dock 'poof' effect and various menu item states (airport signal, battery, etc). Not sure if they're still using them or not, since that was in the 10.0 and 10.1 days...
Re:Stupid Question (Score:2, Interesting)
Re:Stupid Question (Score:4, Informative)
Check out uncommon or odd designs for engines [keveney.com], which would be very difficult to imagine from a text description with a few small pictures.
There are others - google search animated gif "subject" to find useful illustrations for any process.
-Adam
Re:Stupid Question (Score:3, Insightful)
Re:Stupid Question (Score:4, Insightful)
That's not a stupid question at all. If Firefox had a setting (that I knew about) to disable all animation effects by default, I'd enable that feature immediately. More than 90% of animated content out there is crap or worse than crap. 100% of animated effects reduce my reading speed and comprehension. I've asked other people about this, and I seem to suffer this effect more than most people, to the extent that I often set my Firefox font size for inch tall letters so that the majority of the text spills below the aggravating imagery. Sometimes if I can't get the animation away from the text I'm readin, I actually hold one hand over the screen to block out the offending flicker. The few people I know who find this similarly annoying tend to be the exceptional readers. One of my close friends claims he sees every word on the printed page (for book reading) simultaneously, and he moves his eyes back and forth mostly for the purpose of getting the words into proper order for mental comprehension. But he usually knows what the author will claim before he gets there, because he knows what words are coming at the bottom of the page.
For me, there is no "experience" involved in visiting a web page. I go there to suck out the content. I had a jazz musician friend in Montreal who said that he didn't much care if an LP had a gouge the size of the grand canyon, if the performance had "wit" he didn't even hear the clicks and pops. I feel the same way about text. All I'm there to do is discover whether the author has a moment of wit or substance.
What I've learned about reading, serious reading where the aim is not to hear your own thoughts expressed by another person (or believe such), but to encounter thoughts that clash and spark and scrape the paint, to accomplish this the reader must open an expressway of comprehension that bypasses the internal thought police, the slow border crossings with open trunks and snuffling dogs. It seems to me that people who read at the pace of their own internal mind police do not experience the same distress I feel about the visual flickers of animated content: it's only slowing their visual processing down to the same speed their emotional filters were functioning in the first place.
My reading style is that I'm a kind of ambulance chaser: I want the content to strike the rock bottom content of my soul in massive wreckage, trailing ambulances, autopsies, coroner's reports, and sprawling cemeteries full of petty self justifications, RIP.
APNG I can live without.
Re:Stupid Question (Score:5, Informative)
Re:Stupid Question (Score:2)
How about as an alternative format for movie encoding instead of divx?
Sorry, I just had to say it.
MGV
LZW? (Score:2, Insightful)
Hate gif? (Score:3, Insightful)
Most people don't know what png images are and they probably couldn't care less whether they get png or gif images.
Size? (Score:3, Funny)
So large that even Mozilla won't include it, you say?
Uh huh.
Ooookay...
*eyes >10MB binary while whistling*
Love PNG and hate GIF? Most people? (Score:3, Insightful)
Uh, no. Most people have no freakin' clue about what PNG and GIF are. Only we geeks know or care about the difference.
And speaking as a fellow geek, if you're feeling emotions like "love" and "hate" over freakin' image formats you really need to get out of the house more often.
Re:Love PNG and hate GIF? Most people? (Score:4, Funny)
90%+ Market share... (Score:3, Insightful)
animated? (Score:5, Funny)
Surely I am not the only one here to disagree with this statement.... !
Bad "most people" generalization (Score:5, Insightful)
Re:Bad "most people" generalization (Score:2)
Re:Bad "most people" generalization (Score:2)
Re:Bad "most people" generalization (Score:2)
Re:Bad "most people" generalization (Score:2)
bah, MNG has JNG! (Score:2)
JNG test-suite [libmng.com]
Why I don't use PNG (Score:5, Insightful)
The two reasons that PNGs are unsuitable for large-scale use are:
* MSIE support sucks. It is getting better, but it still sucks (yes, I know this is a Microsoft issue not a PNG issue, but I'm not trying to place blame here.)
* Gamma value variation. Look at a PNG on one browser, and the blue value will match #0000CC, but look in another browser on another OS, and IT WON'T! Talk about maddening... this is one situation where the extra control by having the ability to specify a gamma value is a curse, not a blessing.
Yes, I know there are workarounds for both of thses issues. But the fact that they are both fatal flaws, and both have to be worked around, makes PNGs unusable for every-day use.
Re:Why I don't use PNG (Score:5, Insightful)
I don't see how MSIE's lack of alpha-transparency could stop you from using PNGs, since you use GIFs now.
Comment removed (Score:5, Informative)
Re:Why I don't use PNG (Score:2)
Huh? In what way is IE support for PNG worse than for GIF?
Both your reasons suck (Score:3, Informative)
1) IE does support transparent PNG, you just need a CSS hack for it. There are tons of scripts around the web to include the hack automatically, one of which is the 'IE7' DHTML behaviour which fixes a lot more than just PNG transparency, and which anyone who wants to do modern webdesign (semantic and tableless) should consider.
2) If you simply omit the gAMA chunk from your PNGs (pngcrush can do this easily, plus you get tiny PNGs to boot), then the gamma issues wil
Re:Why I don't use PNG (Score:2)
As far as the gamma value goes, the problem is that PNG has the ability to shoot itself in the foot, and I have neither the tools nor the patience to verify if every single image I publish (some of which I didn't directly produce) has the proper value saved. With GIF, this simply isn't an issue.
Browsers have a pallete of colors -- #00
Re:Why I don't use PNG (Score:5, Interesting)
The only thing I can think of is that the software you're using to save your PNG files must be horribly broken. It should be giving you the option to save the gamma value or not --- for what you want, you want not. The Gimp has a whole dialogue it pops up whenever you save a PNG file asking you what extra information you want to save; resolution, creation date, gamma, etc.
To remove the gamma chunk from someone else's files, try this:
...although if you've been converting them to GIFs, you've probably been editing them.
Why doesn't Mozilla include the MNG decoder? (Score:2, Insightful)
A bit OT (Score:4, Insightful)
Re: (Score:2)
Re:A bit OT (Score:3, Interesting)
That being said, I'd like to hear their excuse for not supporint <object> properly
This is just about pointless (Score:2)
MNG as a format (Score:4, Interesting)
APNG looks too lightweight, missing many features necessary to replace the ancient (but still in use!) Amiga-IFF-ANIM. Sure, it's a replacement for shitty animgifs. But can it replace the Amiga-IFF-ANIM7 roughs for a feature-length cartoon?
Yes, much of the industry now uses vector animation (i.e. macromedia's stuff), but bitmapped animations are much easier to seamlessly integrate with bitmapped digitised film. Want a(nother) open source killer app? Take the cinepaint/gimp engine, add a dpaint-like interface and MNG support and lots of bitmap-animation-creation-and-editing features, and several animation companies I know can finally lose their old big-box Amiga stockpiles...
Re:MNG as a format (Score:2, Informative)
Microsoft Extended Sequential Series (Score:5, Funny)
MESS will be incorporated into Longhorn and will be one of the major enhancements to the Microsoft operating system. The MESS graphics format will permit content providers to render highly complex images on a users system. The MESS format allows use of Active X components which permits all kinds of interesting effects on a users system.
When asked about using existing standards executives at Microsoft responded that no other standard in this area exists. Patents have been applied for covering this novel concept and will be agressively defended. Anyone trying to duplicate the intelectual property of Microsoft would be better off using MESS as long as they pay the royalties due Microsoft or they may find them selves in an even bigger MESS.
Executives were then asked about possible security implications of the new MESS protocol. Executives replied that security is a number one priority and that an updated SP3 patch is currently in the works that will address all security issues. The only thing holding up SP3 release is final release of SP2 patch 1 that is needed to address security issues caused by various linux distributions.
Header size (Score:4, Informative)
Another advantage GIF has over PNG is its smaller header size which makes small images lighter. A typical 16x16 GIF icon weighing about 100 bytes will translate into a PNG of 200 bytes or more.
That may sound like nitpicking but it can still matter, for example when transferring images to mobile phones.
Re:Header size (Score:5, Informative)
Experiment #1: 1x1 white pixel. Results: GIF 35 bytes; PNG 67 bytes.
Experiment #2: typical Slashdot icon [slashdot.org] resized to 16x16. Results: GIF 282 bytes; PNG 277 bytes.
I don't see the header size making a huge difference. What does make a moderate difference is that PNG is not bound to 256 colours. You can use a 16-colour palette, in which case pixels are packed in 4 bits each. You can use a 4-colour palette, in which case pixels are packed in 2 bits each. Pixels can be of many different depths between 1 bit and 48 bits. GIF does not have this flexibility.
This is important because icons very rarely use more than 16 colours. PNG gives a win in these cases.
Re:Header size (Score:3, Informative)
Just FYI, GIFs can have 4-color or 16-color palettes [ibm.com].
Why wasn't animation included in the first place? (Score:4, Interesting)
I think the best answer here would be to enhance the existing PNG specification just as GIF's original specification was enhanced to include animation. Let's not call it "*.APNG" or "*.MNG" for that matter. It should still be called *".PNG" just as *.GIF always remained.
I think it would be a mistake to add to the ever-increasing number of filename extensions that exist out there. Isn't this convention a part of DOS and CP/M's legacy anyway? Filename extensions are handy information to append but only to a point.
Re:Why wasn't animation included in the first plac (Score:2)
I made an assumption that wasn't correct. Forget I wrote anything about filename extensions... clearly their plan is exactly what I suggested. So their wisdom is at least as good as my own if not better. Who is the keeper of the PNG format? What would it take to correct the obvious ommisions from the first specification? This enhancement should indeed be added.
Re:Why wasn't animation included in the first plac (Score:5, Informative)
Re:Why wasn't animation included in the first plac (Score:3, Informative)
I admit that I thought the interlacing was kind of cool myself: I had a 9600 baud dial-up at the time.
I lost interest in the process and left the PNG list after the MNG gro
I like this (Score:2)
I love png, their only drawback being the lack of a lightweight animation mthod (which mng certainly is not) until now. How did it take 6 years to come up with such a simple solution?
On talking about the format (Score:4, Informative)
It's not overly complex, it's backwards compatible and it's easy to implement.
It probably will lack some features which would be nice but at the moment I don't see them being spoken about in the specification (ie, what mode of application for the next frame, OR/AND/XOR/INVERT etc).
I think with it being as simple as it is to create an APNG from existing PNG's, we could see this format take off a lot faster than MNG. Now it's simply a matter of waiting for Firefox/Mozilla/Opera to pick up their end and make use of the APNG format.
PLD.
Re:On talking about the format (Score:3, Informative)
Too little, too late (Score:2)
We already have Flash, which is capable of far more than the APNG format will be.
If you don't have Flash, then you can animate PNG's (or JPG's) by using a javascript [enter.net]. Doing it this way means you don't have to worry about incompatibility with the APNG format.
Yeah, the W3 needs to implement a decent animated bitmap format, but the implementation process takes way t
Rather Pointless... (Score:3, Informative)
Unfortunately, it seems that there is almost no MNG software available that supports delta encoding (eg. storing only the difference between sequential images), so if you take (10) 100K PNGs, you get a 1,000K MNG. No space savings, no point really. That is where MNG really falls behind GIF.
It seems mostly pointless, to me, to introduce a new, very similar spec. Backwards compatibily is nice, but not all that necessary, as evidenced by PNG in the first place. In any case, APNG certainly can work where MNG failed, if only good software comes out for it. It's more likely that MNG will get properly advanced software first, but you never can tell.
As for MNG not being in Mozilla, well that is a strange issue... libMNG supports PNG rendering, so if there were more than a nominal number of MNGs on the web, you might have seen libPNG removed instead. However, since you don't see many MNGs, there wasn't much point to keeping it.
Animated JPEGs? (Score:3, Informative)
Is it possible to implement little motion-JPEGs in a browser without it adding too much code?
Just asking.
Comment removed (Score:5, Informative)
Re:Need help (Score:2, Informative)
Read the first half of what you wrote: 1 kg = 2.2 lbs.
Now, quick, what is 1 x 2.2? Could it... 2.2?
I hope this isn't too complicated, but let's go on to a more advanced example.
If 1 kg = 2.2 pounds, then 2 kg (and you can verify this with a scale if you can't do simple arithmetic) must weigh 4.4 pounds. And by some odd coincidence, 2 x 2.2 = 4.4.
Now, if you were to divide 1 by 2.2, you would get app. 0.45, which doesn't fit very we
Re:Use as a video codec? (Score:2)
Re:An unfortunate hack (Score:3, Informative)
Re:An unfortunate hack (Score:4, Informative)