retinize
v1.0.2
Published
retinize images
Downloads
5
Readme
#retinize retinize.js utilizing gm to automate down-scaling of images to target lower resolution or non-retina browsers. Accepts @4x and @2x resolutions, outputting to @2x, and @1x.
#Prerequisites
- Works in Node 0.12+.
- Requires GraphicsMagick for Node. Please go there for installation directions and relevant questions.
#Install
- Install GraphicsMagick for Node (follow instructions).
- Install retinize
npm install --save-dev retinize
- Modify your
package.json
, regisiter taskretinize
.
"scripts": { "retinize": "node node_modules/retinize/retinize.js `pwd`" }
#Usage
npm run retinize