All Projects → bastilian → Middleman Thumbnailer

bastilian / Middleman Thumbnailer

Licence: mit
Thumbnailer for middleman

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Middleman Thumbnailer

lang-compare
Side-by-side language comparison
Stars: ✭ 22 (-57.69%)
Mutual labels:  middleman
middleman starter kit
Middleman front-end starter kit
Stars: ✭ 19 (-63.46%)
Mutual labels:  middleman
Bh
Bootstrap Helpers for Ruby
Stars: ✭ 834 (+1503.85%)
Mutual labels:  middleman
nakama-docs
Documentation for Nakama social and realtime server.
Stars: ✭ 44 (-15.38%)
Mutual labels:  middleman
middleman-startae
A starter template ready to run on Netlify or Heroku. Comes with several helpers, partials and a nice basic structure to the HTML, Sass, Webpack and ES2015. Bottom line, a template that uses all the modern tools.
Stars: ✭ 43 (-17.31%)
Mutual labels:  middleman
middleman-ogp
middleman-og is an extension for the Middleman static site generator that adds Open Graph helper.
Stars: ✭ 37 (-28.85%)
Mutual labels:  middleman
middleman-snippets
⚡ Library of commonly used snippets for Middleman websites
Stars: ✭ 27 (-48.08%)
Mutual labels:  middleman
My Raspberry Pi Site
Middleman-based site for my RaspberryPi
Stars: ✭ 41 (-21.15%)
Mutual labels:  middleman
middleman-robots
middleman-robots is extension of Middleman. This extension create robots.txt by config.rb.
Stars: ✭ 33 (-36.54%)
Mutual labels:  middleman
Middleman Blog
Middleman : Blog Engine Extension
Stars: ✭ 317 (+509.62%)
Mutual labels:  middleman
middleman-fontcustom
Generate webfonts in your Middleman project
Stars: ✭ 13 (-75%)
Mutual labels:  middleman
joinplu.me
The official Plume website
Stars: ✭ 13 (-75%)
Mutual labels:  middleman
mariusz.cc
Personal website, powered by Middleman
Stars: ✭ 40 (-23.08%)
Mutual labels:  middleman
neocortex
🧠Neocortex is a tool to connect your cognitive service (e.g. DialogFlow) 🤖 with your communication channels (like facebook) 📞to create amazing bots
Stars: ✭ 24 (-53.85%)
Mutual labels:  middleman
Middleman
Hand-crafted frontend development
Stars: ✭ 6,812 (+13000%)
Mutual labels:  middleman
middleman-directory
Directory of Middleman extensions, templates and services
Stars: ✭ 30 (-42.31%)
Mutual labels:  middleman
middleman-gulp
A Middleman 4 template using Gulp.js via the external pipeline
Stars: ✭ 42 (-19.23%)
Mutual labels:  middleman
Awesome Docs With Static Site Generators
Pointers to all templates and implementations based on static site generators
Stars: ✭ 44 (-15.38%)
Mutual labels:  middleman
Middleman Zurb Template
Middleman blog template containing ZURB Foundation and sensible default components and templates
Stars: ✭ 29 (-44.23%)
Mutual labels:  middleman
Middlemanapp.com
Documentation for Middleman
Stars: ✭ 264 (+407.69%)
Mutual labels:  middleman

Middleman Thumbnailer

Generate thumbnail versions of your jpeg & png images

Installation

Add this line to your Gemfile:

gem 'middleman-thumbnailer', '~> 0.1'

Configuration

To activate generating thumbnails add the following to config.rb:

  activate :thumbnailer,
    :dimensions => {
      :small => '200x',
      :medium => '400x300'
    },
    :include_data_thumbnails => true,
    :namespace_directory => %w(gallery)

This activates the extension and will only process images in source/images/gallery.

For a file called background.png, versions named background-small-200x.png and background-medium-400x300.png will be generated in the same directory.

Config Options

  • :include_data_thumbnails: Boolean (Default: false) - Enables including a list all image versions generated as the data-thumbnails-attribute for each image when using the thumbnail() helper

  • :namespace_directory: Array (Default: nil) only process images found within this directory within source/images

Helpers

  • thumbnail(image, size, [html_options]): returns thumbnail a image tag for image in size
  • thumbnail_url(image, size): returns the url for image in size
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].