Bridgetown Media Transformation
A Bridgetown plugin to [fill in the blank]…
Installation
Run this command to add this plugin to your site's Gemfile:
$ bundle add bridgetown-media-transformation -g bridgetown_plugins
with VIPS
with ImageMagick
Usage
The plugin will…
Optional configuration options
media_transformation:
optimize: true
interlace: true
default_transformations:
webp:
-
- 320
- 320w
-
- 2000
- 2000w
jpg:
-
- 320
- 320w
-
- 2000
- 2000w
…
Testing
- Run
BRIDGETOWN_ENV=test script/test
to run the test suite - Or run
BRIDGETOWN_ENV=test script/cibuild
to validate with Rubocop and test with rspec together.
Contributing
- Fork it (https://github.com/username/my-awesome-plugin/fork)
- Clone the fork using
git clone
to your local development machine. - Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request