Description
Resize any image on the fly by calling behind the scene the DragonFly gem. The url to the dynamically resized image is returned. The processing relies on ImageMagick.
Syntax
{{ <string> | resize: <resize_string> }}
Examples
{{ project.screenshot | resize: '100x100' }}
{{ 'http://example.com/images/banner.png' | resize: '300x50#' }}
By default, the Rack::Cache middleware is called for the caching. If you host your LocomotiveCMS on Heroku please visit
this page
for setup instructions.
Options
Name | Type | Description |
---|---|---|
resize_string | String | The ImageMagick geometry string. See the following link for examples. |