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: JavaScript Instagram-like Filters

127 pointsby alexmicover 13 years ago

10 comments

kwamenum86over 13 years ago
You should rewrite a "pseudo-non-blocking" implementation of these filters. Right now they block the UI thread for too long, which limits how useful these can be. Web workers in one option, although it's not widely supported. The better option is to use setTimout or setInterval to break of the processing work into chunks, which is supported in all browsers. For example, run the loop n iterations then run the next n after a 15 ms delay. The way you've implemented the processing right now makes this lib unsuitable for use on the clientside.
评论 #3555074 未加载
评论 #3555091 未加载
评论 #3555109 未加载
hhastingsover 13 years ago
What a fantastic contribution & thanks for considering MIT/MPL. This will definitely come in handy as a small side side feature for user profiles on my upcoming projects.
pieover 13 years ago
Another recent Lomo-esque JS library: <a href="http://vintagejs.com/" rel="nofollow">http://vintagejs.com/</a>
huytoan_pcover 13 years ago
It's definitely a good start, but IMO the quality of the filters are not on par with those of Instagram.<p>A better JS filter library I found is CarmanJS. Check out their demos at <a href="http://camanjs.com/examples/presets" rel="nofollow">http://camanjs.com/examples/presets</a>
rokhayakebeover 13 years ago
Awesome. I would suggest wrapping this into a small service and sell it as an API. No need for complicated documentation either, one URL with parameters.
franzeover 13 years ago
really great work there.<p>not a big fan of the license choice, though.
评论 #3554006 未加载
whymsicalburitoover 13 years ago
Awesome work! Is there a way that these filtered images could then be saved server side to be used later without the js?
评论 #3555087 未加载
评论 #3555004 未加载
maxjaderbergover 13 years ago
this is very good! is it possible to save the filtered images locally?
评论 #3555037 未加载
leakover 13 years ago
This is awesome. Thanks!
DanBlakeover 13 years ago
would be cool to see a demo.
评论 #3553947 未加载