mattkevan / jekyll-minimagick-new Goto Github PK
View Code? Open in Web Editor NEWMiniMagick integration for Jekyll
MiniMagick integration for Jekyll
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 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?
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.