Yet another image filter
- Install Node.js
- Install global:
npm install -g bower gulp browser-sync
- Set path (e.g.
cd C:\xampp\htdocs\jojoee.com\yafilter
) - Install dependencies:
bower install && npm install
- Code style: Airbnb
- Pixel operation (e.g.
add
,average
) have to be processed inUtil
class
- 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
- Canvas
- Image processing / manipulation
- Web worker
- Templat engine
- Latest Chrome
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
- TinyJPG
- Photo by Clem Onojeghuo, Samuel Zeller, nobacks.com, cutoutlife.com, mrcutout.com, skalgubbar.se
- JavaScript DocBlock standard, usejsdoc.org, devdocs.magento.com