jesusify

0.3.1-0 • Public • Published

Jesusify is a module that takes the path to an image and outputs that same image with a picture of Jesus Christ and the words "Jesus loves you" overtop of it. It also allows one to pass a callback function that takes two parameters: an error (null if no errors occurred) and a JIMP image object (null if an error occurred). Here is an example of its use:

var jesusify = require('jesusify');
var path = require('path');

//Take in ./images/martinLuther.jpeg, jesusify it, write it out to
//./martinLuther.png and to ./martinLuther.jpeg.
jesusify.jesusify(path.join(__dirname, "images/martinLuther.jpeg"),
                path.join(__dirname, "martinLuther.png"),
    function (err, image) {
        if (err) {
            console.error("Received error: \"" + err + "\"");
            return;
        }
        else {
            image.write("martinLuther.jpeg");
        }
    }
);

Important updates for version 0.3.0:

Fixed bug where callbacks were firing before images were done writing.

Package Sidebar

Install

npm i jesusify

Weekly Downloads

0

Version

0.3.1-0

License

MIT

Last publish

Collaborators

  • awzuelsdorf