Code Monkey home page Code Monkey logo

jekyll-minimagick-new's People

Contributors

mattkevan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jekyll-minimagick-new's Issues

problem in Jekyll build

i copy file to plugin directory and also set config but when i call
jekyll build

get following error:

Dependency Error: Yikes! It looks like you don't have /_plugins/jekyll_minimagick.rb or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- mini_magick' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!

installing gem install mini_magick but nothing changed

minimagick files not appearing in site.static_files

MiniMagick is successfully creating the files (I'm using it to make thumbnails in /images/thumbnail/), but when I do a for loop through the site.static_files array, the thumbnails don't appear.

Is that how it's supposed to be? Is there a way to programmatically ask whether the files exist? My code relies on checking whether the image file exists before trying to render it, and its absence in static_files means I'm not sure how to test for that.

Any advice?

Problem with Dependency Error

Hi Matt,

I'm very new to the whole Ruby/Jekyll ecosystem. I'm using CloudCannon as my UI for Jekyll and it seems really great. Just trying to figure out a straight-forward way to create thumbnails and smaller versions of images and stumbled across your Github repository. It looks like what I am after :)

However, I'm having a bit of trouble getting it to work and wondered if you could spare a moment to see if you know what my issue is. I suspect I'm missing something obvious... I have done the following:

In my root, created folder '_plugins'. Within that I placed jekyll_minimagick.rb

In my '_config.yml' I have the following:

  - "jekyll-feed"
  - "jekyll-seo-tag"
  - "jekyll-paginate"
  - "jekyll-archives"
  - "rmagick"
  - "jekyll-minimagick"

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"

My 'gemfile' is:


gem 'jekyll', '3.3.1'

group :jekyll_plugins do
	gem 'jekyll-feed', '0.6.0'
	gem 'jekyll-seo-tag', '2.0.0'
	gem 'jekyll-paginate', '1.1.0'
	gem 'jekyll-archives', '2.1.1'
	gem 'rmagick', '2.16.0'
end

But I get this error:

Dependency Error: Yikes! It looks like you don't have elegant-hummingbird.cloudvent.net/_plugins/jekyll_minimagick.rb or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- mini_magick' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!

Am I missing something very simple here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.