{"_id":"@aftership/grunt-resize-crop","_rev":"3-0a3702569c962790c79b172a90e234b1","name":"@aftership/grunt-resize-crop","description":"Make images a specific size without distorting the aspect ratio. Resizes as close as possible and crops the rest.","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.2":{"name":"@aftership/grunt-resize-crop","description":"Make images a specific size without distorting the aspect ratio. Resizes as close as possible and crops the rest.","version":"0.0.2","homepage":"https://github.com/traviswimer/grunt-resize-crop","author":{"name":"Travis Wimer","email":"npm@traviswimer.com","url":"http://traviswimer.com"},"repository":{"type":"git","url":"git://github.com/traviswimer/grunt-resize-crop.git"},"bugs":{"url":"https://github.com/traviswimer/grunt-resize-crop/issues"},"licenses":[{"type":"MIT","url":"https://github.com/traviswimer/grunt-resize-crop/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.4","grunt-cli":"~0.1.13","image-size":"~0.2.2","grunt-contrib-watch":"~0.6.1"},"peerDependencies":{"grunt":"~0.4.4"},"keywords":["gruntplugin","images","resize","crop"],"dependencies":{"resize-crop":"0.0.3","deep-extend":"~0.2.8"},"gitHead":"d57d741442f32bdaddd6145788683e15941253c8","_id":"@aftership/grunt-resize-crop@0.0.2","_shasum":"3bb6b5dbe6106873f639274a12ef51adbecf3e42","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"aftership","email":"support@aftership.com"},"dist":{"shasum":"3bb6b5dbe6106873f639274a12ef51adbecf3e42","tarball":"https://registry.npmjs.org/@aftership/grunt-resize-crop/-/grunt-resize-crop-0.0.2.tgz","integrity":"sha512-T6s72Fk40tZTOd1MGzaOQAyEyvI5RgLBMKRY4vGWCwePRd2rPHTEflTMqHh+y1SMU3DQxGUz5L744VgpPI3Fng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDN/HhIu7O3Sq95kTxLQQs3MgMvwBrkg6WGO5JzmYV1fQIhAJ2PjIf73D/1qFszeeVX2f3VUJAVe8Rg4wdFhQZNurmT"}]},"maintainers":[{"name":"aftership","email":"support@aftership.com"}]}},"readme":"# grunt-resize-crop [![Build Status](https://travis-ci.org/traviswimer/grunt-resize-crop.png?branch=master)](https://travis-ci.org/traviswimer/grunt-resize-crop)\n\n> Make images a specific size without distorting the aspect ratio. Resizes as close as possible and crops the rest.\n\n_This plugin is a wrapper for [resize-crop](https://github.com/traviswimer/resize-crop.js)_\n\n## Getting Started\nThis plugin requires [Grunt](http://gruntjs.com/) `~0.4.4` -- [Learn to use Grunt](http://gruntjs.com/getting-started)\n\nInstall the plugin with this command:\n\n```shell\nnpm install grunt-resize-crop --save-dev\n```\n\nEnable in your Gruntfile with:\n\n```js\ngrunt.loadNpmTasks('grunt-resize-crop');\n```\n\n\n## The \"resize_crop\" task\n\nIn your project's Gruntfile, add a section named `resize_crop` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  resize_crop: {\n    image_group: {\n      options: {\n        gravity: \"center\",\n        height: 200,\n        width: 200\n      },\n      files: [{\n        expand: true, // Enable dynamic expansion.\n        cwd: 'img/src', // Src matches are relative to this path.\n        src: ['**/*_[0-9].jpg'], // Actual pattern(s) to match.\n        dest: 'img/dist' // Destination path prefix.\n      }]\n    }\n  }\n});\n```\n\n## Options\n\n### options.height\n\n* REQUIRED OPTION\n* Type: `integer`\n* Description: Sets the height in pixels to be used for the output image.\n\n### options.width\n\n* REQUIRED OPTION\n* Type: `integer`\n* Description: Sets the width in pixels to be used for the output image.\n\n### options.gravity\n\n* Type: `string`\n* Description: Determines the part of the image that will be removed during cropping. For example, `\"center\"` will try to keep the centermost part of the image and only remove the furthest edges.\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 and test your code using [Grunt](http://gruntjs.com/).\n","maintainers":[{"name":"aftership","email":"support@aftership.com"}],"time":{"modified":"2022-06-12T14:20:44.735Z","created":"2015-11-09T05:59:12.424Z","0.0.2":"2015-11-09T05:59:12.424Z"},"homepage":"https://github.com/traviswimer/grunt-resize-crop","keywords":["gruntplugin","images","resize","crop"],"repository":{"type":"git","url":"git://github.com/traviswimer/grunt-resize-crop.git"},"author":{"name":"Travis Wimer","email":"npm@traviswimer.com","url":"http://traviswimer.com"},"bugs":{"url":"https://github.com/traviswimer/grunt-resize-crop/issues"},"readmeFilename":"README.md"}