Skip to content

🎉 (WIP) Yet another image filter (Manipulating images using Web Workers)

Notifications You must be signed in to change notification settings

leopardd/yafilter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yafilter

Yet another image filter

Getting Started

  1. Install Node.js
  2. Install global: npm install -g bower gulp browser-sync
  3. Set path (e.g. cd C:\xampp\htdocs\jojoee.com\yafilter)
  4. Install dependencies: bower install && npm install

Note

  • Code style: Airbnb
  • Pixel operation (e.g. add, average) have to be processed in Util class

TODO

  • Unit test
  • Fix - Testing script
  • Implement template engine
  • Optimize logic
  • Cannot handle large image size
  • Refactor
  • Implement Promise
  • Fix - Cannot change result image dimension from original

Stack: Javascript

  • Canvas
  • Image processing / manipulation
  • Web worker
  • Templat engine

Compatible with

  • Latest Chrome

Why Web Workers

perform processor-intensive calculations without blocking UI thread.

1. Analysis
- text: code syntax highlighting (souldn't block code editor)
- text: real-time text formatting
- text: spell checker
- video data
- audio data
- image data (e.g. image filtering in <canvas>)

2. Fetching
- pre: polling of webservices
- sub: caching data with SW
- sub: merge with template

3. Background I/O
- updating local browser DB

4. Big data
- processing large data

Reference

About

🎉 (WIP) Yet another image filter (Manipulating images using Web Workers)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published