Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 444 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 444 Bytes

remark-jimp-embed

Remark plugin to embed images and edit them with Jimp.

Installation

npm install remark-jimp-embed

Usage

var remark = require('remark')
var embed = require('remark-jimp-embed')

var out = await remark()
  .use(embed, transform)
  .process(input)

function transform (img) {
  img.resize(800, 600)
  img.quality(75)
  return img
}

License

Apache-2.0