Sha256: b3d0ad4c7ebe7246469b3c2e1d77c9ae04ad0f56b01664fe08749fae78894333
Contents?: true
Size: 1.71 KB
Versions: 2
Compression:
Stored size: 1.71 KB
Contents
# Jekyll::Image::Resizer Jekyll image resizer plugin. Resize images with simple command. ## Installation Add this line to your application's Gemfile: ```ruby 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 ```yml image_width: 2048 image_small_height: 200 image_quality: 90 ``` ## Usage $ 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 ## Development 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](https://rubygems.org). ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/kisakov/jekyll-image-resizer.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-image-resizer-0.7.1 | README.md |
jekyll-image-resizer-0.7.0 | README.md |