mattvh / jekyllgallerytag Goto Github PK
View Code? Open in Web Editor NEWJekyll plugin to generate thumbnails from a directory of images and display them with a Liquid tag
Jekyll plugin to generate thumbnails from a directory of images and display them with a Liquid tag
Hey thanks for the awesome plugin! I used your plugin as a template for a plugin I made that makes jpg previews of pdfs and displays them in a gallery. I would like to give you credit, and did not notice which license that this code is under. I want to respect your choice of license as this was based off your code. Here is a link to a gist containing the code. Thanks again for the plugin!
With the plugin installed, as well as the RMagick gem and ImageMagick, I still have problems getting it to work for me.
No thumbnails generated. ImageMagick runs; I have no way to verify that RMagick does the same -- but there is no thumbnail output whether I serve or build the site. I changed the gallerytag
folder values in _config.yml to
dir: media/images/
url: /media/images/
but I'm not sure how that would mess things up. Please advise if I need to provide more information!
Only one column images displayed in the generated HTML page, despite having set a value of 4 in _config.yml. This is probably the simpler problem of the two, and just a matter of setting up CSS?
Edit: I set the thumbnail size to 200x200, but I know see that they are set to 150 square in the generated html. So I guess my _config settings are ignored altogether.
I have a Jekyll blog and it is hosted in GitHub Pages, but because GitHub Pages doesn't allow plugins, I need to create the static page where I will use your plugin and then push it into the GitHub.
I already installed the ImageMagick and RMagick, and because I didn't have _plugins
folder in my Jekyll I created it, and put your galleries.rb file there. Then, in the Gemfile, I included the following line gem 'rmagick'
Afterwards, in the _config.yml
file, I included these lines:
gallerytag:
dir: images/galleries
url: /images/galleries
thumb_width: 150
thumb_height: 150
columns: 4
gems: [galleries]
Finally, I made a post which uses your plugin, and when I tried to run bundle exec jekyll build
, in order to build everything, I got an error message saying:
require cannot load such file -- galleries (LoadError)
If I remove the above gems: [galleries]
line, and try to do the build, then I get the error message saying that the IMG_1424-thumb.JPG
doesn't exist. And it doesn't exist. Simply, the plugin is not creating thumbnails when I do the build.
Any idea what the problem might be, and how to solve it?
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.