JSPM

magick-loader

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q17310F
  • License MIT

A webpack loader for processing images with GraphicsMagick

Package Exports

  • magick-loader

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (magick-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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).