Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

On the "Random Thought": The GIF doesn't need to be animated. A GIF is made of multiple frames and each frame contains multiple image blocks. Each image block has its own coördinates and color table. You should be to use multiple image blocks in one frame (GCE block) to get one frame with 24-bit color.

For historical reasons most browsers don't respect a frame delay of 0 (computers used to be slow enough that even a 0 delay was good enough for animation; as they got faster browsers added extra delays to make old animations work correctly), but I think some renderers will correctly treat it as one frame (at least http://slbkbs.org/jsgif/ does! It has other problems with tricky GIFs, though -- the disposal method code is broken, for one).

Of course, you should just use PNG.




There's an example of a true-colour GIF on this page:

http://phil.ipal.org/tc.html


Thanks for pointing that example out! I should have searched when I wrote about it, but it just tangentially dawned on me that true-colour GIFs were possible as I was writing the article.


If I drag that true color GIF in Safari, it doesn't do the drag with transparency like the other two. Weird.


I always wondered if there's efficient GIF compress trick for Cinemagraphs. Looks like GCE is promising.


I always wondered if there's efficient GIF compress trick for Cinemagraphs




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: