TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: jsgif: A GIF player in JavaScript

128 点作者 shachaf大约 14 年前

9 条评论

olalonde大约 14 年前
<p><pre><code> The source code is a bit of a mess, but if anyone is interested in the non-bookmarkletized code, I can upload it somewhere. </code></pre> How about hosting the source code on GitHub? I'd love to see how this works!
评论 #2408882 未加载
评论 #2406760 未加载
user24大约 14 年前
How strange. Until last month, I was running gifexplode.com, a site where you could share 'exploded' gifs - i.e. it took an animated gif and stepped over it frame-by-frame. I took the service offline last month because people were using it to store porn. I had tried finding a client-side solution in vain. The long-term plan for gifexplode was to introduce a player just like this!<p>Soon as I get a chance, I think I'll relaunch gifexplode with your viewer.<p>Here's the blog post about how gifexplode was born, it's quite an interesting story: <a href="http://www.puremango.co.uk/2009/08/gifexplode-community-powered-web-development/" rel="nofollow">http://www.puremango.co.uk/2009/08/gifexplode-community-powe...</a><p>edit: Hmm, using XHR to fetch the gif will give me cross-domain issues unless I first mirror the image on my server. Anyone know of a way around that?
评论 #2408966 未加载
评论 #2408056 未加载
评论 #2409128 未加载
评论 #2407546 未加载
ck2大约 14 年前
Some really clever work there.<p>Add a timeline slider and it's really usable!<p>ps. for those wanting to read the source more easily,<p>paste the bookmarklet into <a href="http://jsbeautifier.org/" rel="nofollow">http://jsbeautifier.org/</a>
评论 #2406623 未加载
cont4gious大约 14 年前
I like this simply for the content on the page, not necessarily the actual project (tho it's cool too). It's snarky, self-deprecating, and dryly funny.
icode大约 14 年前
Well done! Im looking for a png parser in javascript. I would like to load pngs with xmlhttprequest and them draw them on a canvas. Ever heard of one?
评论 #2406439 未加载
评论 #2406475 未加载
评论 #2406637 未加载
runaway大约 14 年前
I made a similar Chrome plugin called GIF Scrubber: <a href="https://chrome.google.com/webstore/detail/gbdacbnhlfdlllckelpdkgeklfjfgcmp" rel="nofollow">https://chrome.google.com/webstore/detail/gbdacbnhlfdlllckel...</a><p>It also uses a canvas element to render each frame but it does support weird disposal methods. You can see the (very sloppy) source by just viewing the source of the plugin window.<p>You mentioned getting test images for the disposal methods and I found these to be very helpful: <a href="http://algif.sourceforge.net/#18" rel="nofollow">http://algif.sourceforge.net/#18</a><p>I'd also recommend using some kind of movie player-style control like I used and some kind of "explode" function. They both proved popular.
sedachv大约 14 年前
This is the way forward for codecs on the web. Alan Kay has previously complained about how dumbed-down the browsers are in comparison to the possibilities of mobile code, and that's now starting to become less true.<p>The next step beyond that is to provide browser extensions for programming network protocols. One-way HTTP over NAT sucks, web-sockets do not and will not work.<p>We're starting to come back around to the vision of the Internet in the 80s - multi-protocol, multi-host (if you're on the web, you can be a server), mobile code via bytecode (or source code), and with pervasive remote access (VNC and X11/NX).
gojomo大约 14 年前
Neat!<p>What does pin/unpin do? (I clicked it with no obvious effect on playback.)
评论 #2407518 未加载
s3graham大约 14 年前
Nice! I was swearing at Wikipedia's animation of a flipflop a couple days ago. Downloading and fiddling with 'convert' was substantially more annoying.