Jekyll image resizer plugin. Resize images with simple command.
Add this line to your application's Gemfile:
group :jekyll_plugins do
gem 'jekyll-image-resizer', git: 'git@github.com:kisakov/jekyll-image-resizer.git'
end
And then execute:
$ bundle
Or install it yourself as:
$ gem install jekyll-image-resizer
And finaly add these to your _config.yml
image_width: 2048
image_small_height: 200
image_quality: 90
$ jekyll photo 2017-01-15-first-weekend # 1st argument is path or image. Will resize and watermark
$ jekyll image 0.jpg # 1st argument is path or image. Will resize and watermark
$ jekyll resize 2017-01-15-first-weekend # 1st argument is path or image
$ jekyll resize 1.jpg 90 300 # 1st argument is path or image, 2nd is quality 3rd is image small height
$ jekyll watermark 2017-01-15-first-weekend # add watermark
$ jekyll thumbnail 2.jpg # create thumbnail
$ jekyll images 0.jpg # 1st argument is path. Will print image names
After checking out the repo, run bin/setup
to install dependencies. Then, run rake false
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/kisakov/jekyll-image-resizer.