TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: jsgif: A GIF player in JavaScript

128 pointsby shachafabout 14 years ago

9 comments

olalondeabout 14 years ago
<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 未加载
user24about 14 years ago
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 未加载
ck2about 14 years ago
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 未加载
cont4giousabout 14 years ago
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.
icodeabout 14 years ago
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 未加载
runawayabout 14 years ago
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.
sedachvabout 14 years ago
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).
gojomoabout 14 years ago
Neat!<p>What does pin/unpin do? (I clicked it with no obvious effect on playback.)
评论 #2407518 未加载
s3grahamabout 14 years ago
Nice! I was swearing at Wikipedia's animation of a flipflop a couple days ago. Downloading and fiddling with 'convert' was substantially more annoying.