retinize

retinize images


Keywords
retinize, resize, image, 4x, 2x
License
ISC
Install
npm install retinize@1.0.2

Documentation

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

  1. Install GraphicsMagick for Node (follow instructions).
  2. Install retinize npm install --save-dev retinize
  3. Modify your package.json, regisiter task retinize. > "scripts": { "retinize": "node node_modules/retinize/retinize.js `pwd`" }

Usage

npm run retinize