This is a Jekyll plugin that generates galleries from directories full of images. It uses RMagick to create thumbnails.
This plugin is quite minimalist. It generates galleries with no pagination, no sub-galleries, and no descriptions. See my gallery for an example of what it looks like.
Install the jekyll-gallery-generator
gem, either by running gem install jekyll-gallery-generator
or by adding gem 'jekyll-gallery-generator'
to your Gemfile
and running bundle
.
Add jekyll-gallery-generator
to the plugins list in your _config.yml
:
plugins:
- jekyll-gallery-generator
jekyll-site/photos/
. Here's what my directory structure looks like:$ ls jekyll-site/photos
best/ chile_trip/ japan_trip/
$ ls jekyll-site/photos/chile_trip
IMG_1039.JPG IMG_1046.JPG IMG_1057.JPG
jekyll build
and be patient. It can take a while to generate all the thumbnails on the first run. After that, you should have pretty pictures.brew install imagemagick rbenv
rbenv install 2.4.0
rbenv global 2.4.0
gem install rmagick exifr
apt install libmagick++-dev
gem install rmagick exifr
This plugin reads several config options from _config.yml
. The following options are supported (default settings are shown):
gallery:
dir: photos # Path to the gallery
symlink: false # false: copy images into _site. true: create symbolic links (saves disk space)
title: "Photos" # Title for gallery index page
title_prefix: "Photos: " # Title prefix for gallery pages. Gallery title = title_prefix + gallery_name
sort_field: "date_time" # How to sort galleries on the index page.
# Possible values are: title, date_time, best_image
thumbnail_size:
x: 400 # max width of thumbnails (in pixels)
y: 400 # max height of thumbnails (in pixels)
# The following options are for individual galleries.
galleries:
chile_trip:
best_image: IMG_1068.JPG # The image to show on the gallery index page. Defaults to the last image.
japan_trip:
best_image: IMG_0690.JPG
name: "日本の旅" # Defaults to directory name, replacing _ with spaces & capitalizing words.
awesome_stuff:
best_image: snaileo_gonzales.jpg
sort_reverse: true # Reverse sort images in gallery.
secret_stuff:
hidden: true # Don't show this gallery on the index page. People must guess the URL.
with_info:
info:
desc: "Gallery Description" # Info fields can be used in custom templates.
If you want to customize the templates used by this generator, copy gallery_index.html
and gallery_page.html
to your Jekyll site's _layouts
:
cp lib/gallery_index.html jekyll-site/_layouts/
cp lib/gallery_page.html jekyll-site/_layouts/
A Jekyll Image Gallery This website illustrates how to integrate a lightGallery/Isotope photo gallery into a Jekyll website. Two example galleries are included. This solution is GitHub Pages friendly
Gallery模块管理系统相册,支持从相册中选择图片或视频文件、保存图片或视频文件到相册等功能。通过plus.gallery获取相册管理对象。 方法: pick: 从系统相册选择文件(图片或视频) save: 保存文件到系统相册中 对象: GalleryOptions: JSON对象,从相册中选择文件的参数 GalleryCropStyles: 裁剪图片设置项 GalleryFilter: 相册选
Gallery Gallery用于实现上传图片的展示或幻灯片播放 <div class="weui-gallery"> <span class="weui-gallery__img" style="background-image: url(./images/pic_article.png);"></span> <div class="weui-gallery__opr">
Gallery 是一个图片搜索引擎项目,建立在 PHP5 、MySql 和 Memcached 基础上进行的全字符搜索,有 Docker 安装。 特性: 直接。 搜索功能在所有事件顶部。 简单。 默认情况下,你可以看到所有图片; 登录后,只显示你自己的图片。 简单。 从桌面/平板电脑/移动设备上上传,支持拖放。
Gallery是一款用PHP开发的基于WEB的相片管理系统,Gallery 非常易于使用,包括一个配置向导,对于相片的操作包括自动生成缩略图、相片的大小改变、选择、排序等。
MZ-G是Mengzhu Gallery的缩写。这是为"萌主精选"这家主营母婴用品、儿童服装、澳洲代购的实体小铺子做的一个CRM。萌主精选坐落在六朝古都南京,这家店的女老板,也是我的老板,需要一个定制化的CRM以支持她完成会员、商品、销售三个方面的日常经营活动,所以就有了这个小项目。由于是定制,所以并不是一个完整的crm,在这一点上请列位看官就不要bibi了。 MZ-G是javaee web应用。