zroger / jekyll-minimagick Goto Github PK
View Code? Open in Web Editor NEWMiniMagick integration for Jekyll
MiniMagick integration for Jekyll
I am getting below error, can you please suggest ?
Unable to get image dimensions for "C:/Vishal/jekyll work/segurodeautomovel-org/_site/uploads/Screen%20Shot%202018-07-24%20at%2015.54.11.JPG". For local files, build the site with '--skip-initial-build' for better results. [Error: undefined method `[]' for nil:NilClass]
jekyll 3.2.1 | Error: uninitialized class variable @@mtimes in Jekyll::JekyllMinimagick::GeneratedImageFile
I notice that you haven't specified a license. Could you specify a license or indicate that this is in the Public Domain?
I want to generate perfect thumbnails (100x100 forced, just a sample), is there any option on MiniMagic that could help with that?
Thank you!
The current source for Minimagick isn't completely implementing the initialisation of a new StaticFile.
https://github.com/zroger/jekyll-minimagick/blob/master/lib/jekyll-minimagick.rb#L15-L23
https://github.com/jekyll/jekyll/blob/master/lib/jekyll/static_file.rb#L29-L38
Please mirror those changes as these omissions are causing problems for other plugins, e.g. jekyll-relative-links.
Thanks.
[warning: noob] Have a pretty vanilla Jekyll that was running fine until I tried adding jekyll-minimagick
. Here's the error I keep bumping into:
1: from /Users/tim/.rvm/gems/ruby-2.6.3/gems/jekyll-4.0.0/lib/jekyll/static_file.rb:161:in `url' /Users/tim/.rvm/gems/ruby-2.6.3/gems/jekyll-4.0.0/lib/jekyll/static_file.rb:148:in `cleaned_relative_path': undefined method `length' for nil:NilClass (NoMethodError)
Files I've changed:
_plugins/bundler.rb
_plugins/my-plugin.rb
gem "jekyll-minimagick"
to :jekyll_plugins
in my Gemfile_config.yml
:mini_magick:
thumbnail:
source: photos/original
destination: photos/thumbnail
resize: "640x640"
tint:
source: photos/original
destination: photos/tint
resize: "1x1"
Anyone has any thoughts? Is this a bug or human error?
Does this not work if you have other folders/files in the directory that you're sourcing from? It only works if the source is a folder with only images inside.
Hey, I'm trying other commands in the config file like 'format' and 'crop' but nothing appears to be happening. Is there support for the standard ImageMagick commands other than resize?
There is a little overlap here with #10
I used the basic setup which didn't load all the dependencies. But using the bundler setup worked for me first time.
So if you're like me and am not a Ruby Wiz, go for the bundler setup.
It would be nice to add a way to create proportional thumbnails by just setting the max value of height/width
Please update the ruby gem to the latest version.
I know it's totally obvious, but I think it would help to be more explicit about the imagemagick dependency in the readme. Apologies if it's already there and I somehow missed it.
It fails silently if imagemagick isn't installed – left me scratching my head for a minute.
Seems to work really nicely though. Thanks!
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.