wintersmith-image-generator2.0.0 • Public • Published
Install globally or locally using npm
npm install [-g] wintersmith-image-generator
wintersmith-image-generator to your config.json.
Then configure the versions you'd like to generate.
You can use most of the methods specified in the gm docs listed here.
Then use the generated version in your templates.
h2 original images- for image in page.parent.pictures._.filesimg(src=image.url)h2 resized images- for image in page.parent.pictures._.images_smallimg(src=image.url)
npm i wintersmith-image-generator