• Stars
    star
    141
  • Rank 254,592 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Instagram-like photo manipulation library in JavaScript

The completely new vewsion, Filterous-2 for both JavaScript for browser and Node.js is available at https://github.com/girliemac/filterous-2!

This repo is no longer maintained.

Filterous

Filterous

Image manipulation library in JavaScript that applies filters to photos à la Instagram on browser. This script take pixel data from a photo that you want to give filter effects, and maniplute its pixels using the canvas element. The finished photo can be displayed as canvas, or as downloadable image formats such as jpeg, png, or webp for Chrome.

This works on modern mobile browsers as well.

Created by Tomomi Imura

Simple Demo

Filterous Demo

Real-life Example App

W3C CoreMob camera - Mobile Web App

Installation

Just include filterous.js in your HTML file.

<script src="filterous.js"></script>

Filterous does not require any other depencies.

Basic Usage

Create a new instance.

var f = new Filterous(imageObject);

Leaving the second param results a finished photo as a canvas, otherwise in a specified images format.

var f = new Filterous(imageObject, 'jpeg');

Apply a filter (or multiple filters) then render.

f.filterImage('brightness', 50);
f.render();

Examples of using other filters

f.filterImage('grayscale');
f.filterImage('rgbAdjust', [1.4, 1.2, 1]);
f.filterImage('convolute', [ 0, 0, 0,
                             0, 1, 0,
                             0, 0, 0 ]
);

or add an image layer:

var starryLayer = new Image();
starryLayer.src = 'effects/stars.png';

var f = new PhotoFilter(Filterous, 'jpeg');
f.applyLayer(starryLayer);
f.render();

Reset:

f.reset();

Using Presets (instead of defining filters manually)

  • Import filterousEffects.js.
  • Include the effects folder (contains the overlay image).
<script src="filterousEffects.js"></script>
ApplyEffects.nostalgia(imageObject, 'jpeg');

Take a look at the filterousEffects.js to see all available presets.

License

MIT License

Thank you

Thank you html5rocks.com for the tutorial on the pixel manpulating tutorials :-)

More Repositories

1

a-picture-is-worth-a-1000-words

I am trying to describe complex matters in simple doodles!
10,849
star
2

RPi-KittyCam

Raspberry Pi app using a camera and PIR motion sensor, written in Node.js with Johnny-Five and Kittydar for cat facial detection
JavaScript
582
star
3

web-speech-ai

Simple AI Chat Bot Demo with Web Speech API
JavaScript
362
star
4

filterous-2

Instagram-like photo manipulation library for Node.js and Javascript on browser
JavaScript
195
star
5

fb-apiai-bot-demo

A simple example of Facebook Chat Bot using API.ai
JavaScript
74
star
6

slack-httpstatuscats

HTTP Status Cats for Slack
JavaScript
47
star
7

html5-notifications-webOS-style

HTML5 Web Notifications API Demo
CSS
45
star
8

slack-sentiment

Slackbot: Sentiment analysis for Slack messages using IBM Watson
JavaScript
39
star
9

dash-rickroll

A node.js application to Rickroll whoever presses your Amazon Dash button.
JavaScript
36
star
10

x-barcode

Web Component wrapper for UPC-A (for now) barcode using Polymer.
HTML
22
star
11

girliemac.github.io

GirlieMac Blog on Github Pages
Less
18
star
12

arduino-led-rgb

A poor man's HUE smart light bulb demo with Arduino and RGB common cathode LED
CSS
18
star
13

send-sms

Nexmo demo: Sending SMS from web
JavaScript
17
star
14

presentation-slides

My Presentation slides in HTML
HTML
17
star
15

girliemac

my profile
11
star
16

magic8ball

HTML5 Device Orientation API Demo
JavaScript
9
star
17

msteams-httpstatuscats

HTTP Status Cats app for Microsoft Teams
JavaScript
8
star
18

nexmo-webhook

Nexmo Inbound Message Webhook Example in Node.js
JavaScript
5
star
19

sushi-compass

Pizza Compass Knock-off in HTML5
JavaScript
4
star
20

passport-uber-v2

Uber authentication strategy for Passport and Node.js
JavaScript
3
star
21

passport-lyft

Lyft authentication strategy for Passport and Node.js.
JavaScript
3
star
22

slack-twilio-call-demo

A Slack demo for Twilio Signal 2019 (1) receive a call and send a transcript to Slack and (2) Make a call to an agent and customer from Slack
JavaScript
3
star
23

Mojo-ICanHasLOL

ICanHasLOL app for Palm WebOS. (Unfinished. works as expected on emulator & devices. UI/Style will be modified. Icons will be modified.)
JavaScript
3
star
24

chat-lyft

A simple demo chat app that allows ypu to check nearby Lyft drivers
JavaScript
2
star
25

stickies

IndexedDB Demo App
JavaScript
2
star
26

comicsansfy

Make your web more friendly
2
star
27

x-twitter-button

Web Component wrapper for Twitter share button using Polymer
2
star
28

CoDoodler

Doodle with strangers on InterWeb
CSS
2
star
29

camera-cordova

PhoneGap version of the Coremob Camera app
JavaScript
1
star
30

flickr-css3-3d-demo

My CSS3 3D animation demo from 2009
CSS
1
star
31

terrarium-project

Learn the basics of HTML, CSS, and vanilla JavaScript DOM manipulation while building a web terrarium
HTML
1
star