Skip to content

MattKevan/Jekyll-MiniMagick-new

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Jekyll MiniMagick new

MiniMagick integration for Jekyll

This is an updated and working version of zroger's Ruby Gem, integrating new features and bugfixes from pull requests and the issue queue which haven't yet made their way back into the code.

Put the file in your _plugins folder, add gem "mini_magick" to your gemfile and run bundle install. You'll also need ImageMagick itself.

Presets are defined in _config.yml like so:

mini_magick:
    thumbnail: # Preset name
        source: images/originals # source directory - change this to whatever you want
        destination: images/thumbnail # generated destination directory
        resize: "100x70^" # standard imagemagick options - you can chain multiple commands
        gravity: "center"
        extent: "100x70"

This will scale and crop all images in images/originals to 100x70 pixels and save them into _site/images/thumbnail on build.

About

MiniMagick integration for Jekyll

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages