{
  "name": "pngsmith",
  "description": "png engine for spritesmith",
  "version": "0.1.3",
  "homepage": "https://github.com/twolfson/pngsmith",
  "author": {
    "name": "<NAME>",
    "email": "<EMAIL>",
    "url": "http://twolfson.com/"
  },
  "repository": {
    "type": "git",
    "url": "git://github.com/twolfson/pngsmith.git"
  },
  "bugs": {
    "url": "https://github.com/twolfson/pngsmith/issues"
  },
  "licenses": [
    {
      "type": "UNLICENSE",
      "url": "https://github.com/twolfson/pngsmith/blob/master/UNLICENSE"
    }
  ],
  "main": "lib/pngsmith",
  "engines": {
    "node": ">= 0.8.0"
  },
  "scripts": {
    "test": "mocha"
  },
  "dependencies": {
    "obj-extend": "~0.1.0",
    "async": "~0.2.7",
    "ndarray": "~1.0.9",
    "save-pixels": "~0.3.0",
    "get-pixels": "~1.0.1",
    "concat-stream": "~1.2.1"
  },
  "devDependencies": {
    "chai": "~1.8.1",
    "grunt": "~0.4.2",
    "grunt-contrib-jshint": "~0.7.2",
    "grunt-contrib-watch": "~0.5.3",
    "mocha": "~1.21.4",
    "spritesmith-engine-test": "~2.0.0"
  },
  "keywords": [
    "pngjs",
    "png",
    "spritesmith",
    "image",
    "layout",
    "canvas"
  ],
  "readme": "# pngsmith [![Build status](https://travis-ci.org/twolfson/pngsmith.png?branch=master)](https://travis-ci.org/twolfson/pngsmith)\n\n`png` engine for [spritesmith][].\n\n[spritesmith]: https://github.com/Ensighten/spritesmith\n\nThis can be used for constructing a canvas, placing images on it, and extracting the result image.\n\n## Getting Started\nInstall the module with: `npm install pngsmith`\n\n```javascript\n// Convert images into pngsmith objects\nvar images = ['img1.jpg', 'img2.png'];\npngsmith.createImages(this.images, function handleImages (err, imgs) {\n  // Create a canvas to draw onto (200 pixels wide, 300 pixels tall)\n  pngsmith.createCanvas(200, 200, function (err, canvas) {\n    // Add each image at a specific location (upper left corner = {x, y})\n    var coordinatesArr = [{x: 0, y: 0}, {x: 50, y: 50}];\n    imgs.forEach(function (img, i) {\n      var coordinates = coordinatesArr[i];\n      canvas.addImage(img, coordinates.x, coordinates.y);\n    }, canvas);\n\n    // Export canvas to image\n    canvas['export']({format: 'png'}, function (err, result) {\n      result; // Binary string representing a PNG image of the canvas\n    });\n  });\n});\n```\n\n## Documentation\nThis module was built to the specification for all spritesmith modules.\n\nhttps://github.com/twolfson/spritesmith-engine-test\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint using [grunt](https://github.com/gruntjs/grunt) and test via `npm test`.\n\n## Donating\nSupport this project and [others by twolfson][gittip] via [gittip][].\n\n[![Support via Gittip][gittip-badge]][gittip]\n\n[gittip-badge]: https://rawgithub.com/twolfson/gittip-badge/master/dist/gittip.png\n[gittip]: https://www.gittip.com/twolfson/\n\n## Unlicense\nAs of Dec 13 2013, <NAME> has released this repository and its contents to the public domain.\n\nIt has been released under the [UNLICENSE][].\n\n[UNLICENSE]: UNLICENSE\n",
  "readmeFilename": "README.md",
  "_id": "pngsmith@0.1.3",
  "_from": "pngsmith@~0.1.0"
}
