Image and video transformation via image_processing and ffmpeg
MIT License
A Bridgetown plugin to [fill in the blank]…
Run this command to add this plugin to your site's Gemfile:
$ bundle add bridgetown-media-transformation -g bridgetown_plugins
The plugin will…
# bridgetown.config.yml
media_transformation:
# Whether to optimize transformed images with image_optim
#
# Type: Boolean
# Optional: true
# Default: false
optimize: true
# Whether to progressive scan JPGs
#
# Type: Boolean
# Optional: true
# Default: false
interlace: true
# The default transformations
#
# Type: Hash
# Optional: true
# Default:
# {
# "webp" => [[640, "640w"], [1024, "1024w"], [1280, "1280w"], [1920, "1920w"], [3840, "2x"]],
# "jpg" => [[640, "640w"], [1024, "1024w"], [1280, "1280w"], [1920, "1920w"], [3840, "2x"]]
# }
default_transformations:
webp:
-
- 320
- 320w
-
- 2000
- 2000w
jpg:
-
- 320
- 320w
-
- 2000
- 2000w
…
BRIDGETOWN_ENV=test script/test
to run the test suiteBRIDGETOWN_ENV=test script/cibuild
to validate with Rubocop and test with rspec together.git clone
to your local development machine.git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)