Permalink
Browse files

Added more filters and ported some more util functions over

  • Loading branch information...
meltingice committed Jan 10, 2012
1 parent b35b14e commit 3d9e6639f9a218597c702e0a311dbbf2d11a20af
Showing with 278 additions and 79 deletions.
  1. +0 −12 Makefile
  2. +0 −52 Makefile.js
  3. +7 −7 README.md
  4. +138 −1 dist/caman.js
  5. +5 −3 dist/caman.min.js
  6. +5 −1 src/calculate.coffee
  7. +121 −1 src/filters.coffee
  8. +2 −2 src/renderjob.coffee
View
@@ -1,12 +0,0 @@
-all:
- node Makefile.js
-
-pack: all
- packer -b -s -i dist/caman.js -o dist/caman.pack.js
- packer -b -s -i dist/caman.full.js -o dist/caman.full.pack.js
-
-docs: all
- docco src/*.js
-
-clean:
- rm -f dist/*
View
@@ -1,52 +0,0 @@
-var fs = require('fs'),
-smoosh = require('smoosh'),
-
-SRC_DIR = 'src',
-PLUGIN_DIR = 'src/plugins/plugins';
-
-/*
- * Prepare our plugins
- */
-
-// Make sure plugins submodule is initialized first
-try {
- fs.readdirSync(PLUGIN_DIR);
- finish();
-} catch (e) {
- console.log("####################################");
- console.log("It looks like the CamanJS-Plugins submodule hasn't");
- console.log("been initialized yet. Let me fix that for you.");
- console.log("####################################");
-
- exec('git submodule init', function () {
- exec('git submodule update --recursive', function () {
- finish();
- });
- });
-}
-
-function finish() {
- // then generate plugins.js file
- try {
- // Remove plugins.js if it exists
- fs.statSync(SRC_DIR + "/plugins/plugins.js");
- fs.unlinkSync(SRC_DIR + "/plugins/plugins.js");
- } catch (e) { /* Do nothing */ }
-
- var plugins = "";
- fs.readdirSync(PLUGIN_DIR).forEach(function (plugin) {
- plugins += fs.readFileSync(PLUGIN_DIR + '/' + plugin, 'UTF-8') + "\n";
- });
-
- // output plugins.js
- fs.writeFileSync(SRC_DIR + "/plugins/plugins.js", plugins);
-
- /*
- * Time to smoosh!
- */
- smoosh.config('./config.json');
- smoosh.run().build().analyze();
-
- // Remove the temporary plugins.js file
- fs.unlinkSync(SRC_DIR + "/plugins/plugins.js");
-}
View
@@ -6,7 +6,9 @@ The main focus of CamanJS is manipulating images using the HTML5 canvas and Java
CamanJS is very easy to extend with new filters and plugins, and it comes with a wide array of image editing functionality, which is only growing as the community makes more plugins.
-For more information, I highly recommend taking a look at the <a href="http://camanjs.com">official website</a> where there is more comprehensive documentation and interactive demos. You can also <a href="https://github.com/meltingice/CamanJS/wiki">read the wiki</a> for some basic information about the project and how to use it.
+For more information, I highly recommend taking a look at the [official website](http://camanjs.com) where there is more comprehensive documentation and interactive demos. You can also [read the wiki](https://github.com/meltingice/CamanJS/wiki) for some basic information about the project and how to use it.
+
+CamanJS is written in [Coffeescript](http://coffeescript.org) as of version 3.0.
## Example Usage
@@ -43,23 +45,21 @@ git submodule update
The library is split up into several source files and has a separate submodule for plugins. The reason behind this organization is to make it as simple as possible to support the NodeJS port of Caman. This also helps to avoid library bloat.
-**Makefile**
-
-The NodeJS powered Makefile for the project will automatically check to make sure you've initialized the submodules, and if you haven't, will do so for you. Running the Makefile requires smoosh (available in npm).
+**Building CamanJS**
To build, simply run:
```
-make
+cake build
```
The resulting files will be placed in the dist/ folder.
## CDN JS Hosting
-CamanJS is hosted on CDN JS if you're looking for a CDN hosting solution. It is the full and minified version of the library, which means all plugins are included. Simply load CamanJS directly from <a href="http://ajax.cdnjs.com/ajax/libs/camanjs/2.2/caman.full.min.js">this URL</a> for usage on your site.
+CamanJS is hosted on CDN JS if you're looking for a CDN hosting solution. It is the full and minified version of the library, which means all plugins are included. Simply load CamanJS directly from [this URL](http://ajax.cdnjs.com/ajax/libs/camanjs/2.2/caman.full.min.js) for usage on your site.
## NodeJS Compatibility
-There is now a version of CamanJS that is made to work with NodeJS. It has all of the functionality of the normal browser version, including plugins. Take a look at the <a href="https://github.com/meltingice/CamanJS/tree/node">node branch</a> for more information.
+There is now a version of CamanJS that is made to work with NodeJS. It has all of the functionality of the normal browser version, including plugins. Take a look at the [node branch](https://github.com/meltingice/CamanJS/tree/node) for more information.
**tl;dr**
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 3d9e663

Please sign in to comment.