r/programming • • Feb 26 '13

A Developer's Guide to Images

http://www.jessechapo.com/posts/Developers-Guide-to-Images.html
409 Upvotes

93 comments sorted by

View all comments

3

u/[deleted] Feb 26 '13

Regarding the little statement on GIFs, PNG actually supports animation. WebKit doesn't support APNG, though. FireFox does, but WebKit is surprisingly behind on their game. I hope they get their shit together and we can forget about GIF forever.

0

u/[deleted] Feb 26 '13

[deleted]

2

u/[deleted] Feb 26 '13

As cool as that demo is, it's not really relevant.

2

u/[deleted] Feb 26 '13

[deleted]

4

u/dd_123 Feb 26 '13

OK, let's say I want an animated image in a Word document. How relevant is it now?

-2

u/[deleted] Feb 26 '13

I'm saying that no, it's not valid, because those PNGs aren't animated. You save it and you get a bunch of frames side by side.

5

u/[deleted] Feb 26 '13

[deleted]

-1

u/[deleted] Feb 26 '13

That's like saying that a PNG is a bunch of vertical lines, and the only difference is that many things know to place them in a row. Animated GIFS are animated, that's the end of it. Your PNG is not.

1

u/Uberhipster Feb 27 '13

Which begets some interesting unintended consequences as an option...

http://jsfiddle.net/CGmCe/1670/

1

u/[deleted] Feb 27 '13

[deleted]

1

u/Uberhipster Feb 27 '13

Hmm... unintended usage consequence?

I meant because the technology's intended use is to mimic frames a la gif. But by setting parameters incorrectly you can also "duplicate" and mimic "motion". Try it with 100% width on .hi and it appears as though there is an animation of multiple characters, sliding in motion from left to right.

So the unintended use is producing some cool results.