retinize

1.0.2 • Public • Published

#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

/retinize/

    Package Sidebar

    Install

    npm i retinize

    Weekly Downloads

    5

    Version

    1.0.2

    License

    ISC

    Last publish

    Collaborators

    • annali