{"name":"pngsmith","description":"png engine for spritesmith","version":"0.1.2","homepage":"https://github.com/twolfson/pngsmith","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","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":"doubleshot"},"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","doubleshot":"~2.13.1","grunt":"~0.4.2","grunt-contrib-jshint":"~0.7.2","grunt-contrib-watch":"~0.5.3","spritesmith-engine-test":"~1.2.1"},"keywords":["pngjs","png","spritesmith","image","layout","canvas"],"gitHead":"b9e2e16c28e2177cefc4e7d12d5454fd53b9422b","_id":"pngsmith@0.1.2","_shasum":"f926f35f5faa8cede65562891787085a6a34030d","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"twolfson","email":"todd@twolfson.com"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"dist":{"shasum":"f926f35f5faa8cede65562891787085a6a34030d","tarball":"http://registry-npm.ywwl.com/pngsmith/download/pngsmith-0.1.2.tgz","integrity":"sha512-7pchX28P9gHLdvQVl42QsT62pVSiUBsNYy6W/XzE8dOKYjarmBPqnJ/olxGm9NwLOMW3JqOLzrWM1iU8UcFmXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLQu9Gvczi84oqye8tw7nangtBmMaQLcCTc52Y6ugEkAIhAIy66GDeAV3y7DTPbr8ZqbR9L3XSQIeHDwLW58sMT2h/"}],"size":4892,"noattachment":false,"key":"/pngsmith/-/pngsmith-0.1.2.tgz"},"directories":{},"readme":"# pngsmith [![Build status](https://travis-ci.org/twolfson/pngsmith.png?branch=master)](https://travis-ci.org/twolfson/pngsmith)\n\n## This project has been deprecated in favor of [pixelsmith][], a [spritesmith][] engine that additionally supports JPEG.\n\n`png` engine for [spritesmith][].\n\n[pixelsmith]: https://github.com/twolfson/pixelsmith\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, Todd Wolfson has released this repository and its contents to the public domain.\n\nIt has been released under the [UNLICENSE][].\n\n[UNLICENSE]: UNLICENSE\n","publish_time":1412231761860,"_cnpm_publish_time":1412231761860,"dist-tags":{"latest":"0.1.5"}}