{"_id":"transkode","_rev":"5-99e990ab73fa884297f9a082aa064a6e","name":"transkode","description":"Image/Video Transcoding Server","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.4":{"name":"transkode","description":"Image/Video Transcoding Server","version":"0.0.4","author":{"name":"Evan Owen","email":"kainosnoema@gmail.com"},"dependencies":{"express":"2.5.x","cluster":"0.7.x","redis":"0.7.x","kue":"0.3.x","async":"0.1.x","gm":"https://github.com/kainosnoema/gm/tarball/feature/autoOrient","mkdirp":"0.2.x","cloudfiles":"0.3.1","cli":"0.3.x"},"devDependencies":{"vows":"*"},"repository":{"type":"git","url":"git://github.com/kainosnoema/transkode.git"},"main":"index","bin":{"transkode":"./bin/transkode.js"},"engines":{"node":">=0.4.6"},"_npmUser":{"name":"kainosnoema","email":"kainosnoema@gmail.com"},"_id":"transkode@0.0.4","_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"9d913e20a974137494af9d272eee6db99e8f3367","tarball":"https://registry.npmjs.org/transkode/-/transkode-0.0.4.tgz","integrity":"sha512-7YUuGI4PUL+VHgcIvNOKEoaE0nduRrAKhkJgskZcWfa2+1IRYKE3RekxmmBMy6WeEWtQLT5MMkbMPOD7L/8yzw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyQ3rL8Ga/knZwyXouD9aOWrBmneDJpVxDfb4uoGCWWgIgDgWnY3xXnWJyUlSSNBCOFj64oyXjwZjo6SnI/gZcxRY="}]},"maintainers":[{"name":"kainosnoema","email":"kainosnoema@gmail.com"}]}},"readme":"# transkode\n\nNode-powered, Redis-backed (queued) transcoding server for images and video (coming).\n\n## Is it any good?\n\nNo. This is just an experiment and is NOT production ready.\n\n## Dependancies\n\n- Node.js v0.4.6+\n- Redis v2.0+\n- GraphicsMagick 1.3.12+\n\n## Proposed Usage\n\n```` js\n\nPOST http://localhost:4422/jobs/(image|video)\n\n{\n  \"title\": \"resize profile pic for user 5432\"\n, \"input\": {\n    \"filename\": \"original.jpg\"\n  , \"local\": \"./test/images/original.jpg\"\n  }\n, \"outputs\": [\n    {\n      \"resize\": { \"to\": \"400x200\", \"strategy\": \"crop\" }\n    , \"blur\": 10\n    , \"quality\": 80\n    , \"cloudfiles\": {\n        \"container\": \"...\"\n      , \"name\": \"profile_images/new/400.jpg\"\n      }\n    }\n  , {\n      \"resize\": { \"to\": \"200x100\", \"strategy\": \"crop\" }\n    , \"quality\": 70\n    , \"local\": \"./test/images/new-200.jpg\"\n    }\n  , {\n      \"resize\": { \"to\": \"50\", \"strategy\": \"crop\" }\n    , \"quality\": 70\n    , \"local\": \"./test/images/new-50.jpg\"\n    }\n  , {\n      \"resize\": { \"to\": \"20\", \"strategy\": \"crop\" }\n    , \"quality\": 70\n    , \"local\": \"./test/images/new-10.jpg\"\n    }\n  ]\n, \"wait\": true\n, \"meta\": {\n    \"user_id\": 5432\n  }\n, \"postback_url\": \"http://localhost:3000/transcode\"\n}\n\n````\n\n## Image Processors\n\n### resize\n\n```` js\n\n\"resize\": {\n  \"width\": 100\n, \"height\": 100\n, \"to\": \"100x100\"\n, \"strategy\": [fit|crop|pad|stretch]\n, \"zoom\": true\n, \"gravity\": [\"center\", ...] (when cropping or padding)\n, \"background\": [color]\n}\n\n````\n\n## Authors\n\n  * Evan Owen\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Evan Owen &lt;kainosnoema@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","maintainers":[{"name":"kainosnoema","email":"kainosnoema@gmail.com"}],"time":{"modified":"2022-06-27T20:22:29.945Z","created":"2012-01-11T21:42:50.080Z","0.0.4":"2012-01-11T21:42:50.315Z"},"author":{"name":"Evan Owen","email":"kainosnoema@gmail.com"},"repository":{"type":"git","url":"git://github.com/kainosnoema/transkode.git"}}