Skip to content

A webpack loader for processing images with GraphicsMagick

Notifications You must be signed in to change notification settings

axtgr/magick-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

magick-loader

A webpack loader for processing images with GraphicsMagick.

Installation

  1. Install GraphicsMagick
  2. npm install --save-dev magick-loader
  3. If the loader doesn't work, try installing ImageMagick

Usage

require('file!img!magick?-resize 1920x1080!./image.jpg');

The query string (-resize 1920x1080 in the example) will be passed to GraphicsMagick as command line parameters (gm's .out() method is used for this).

About

A webpack loader for processing images with GraphicsMagick

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published