summaryrefslogtreecommitdiffstats
path: root/resource/smartcrop.go
AgeCommit message (Collapse)Author
2018-02-05resource: Add smart croppingBjørn Erik Pedersen
This commit `smart` as a new and default anchor in `Fill`. So: ```html {{ $image.Fill "200x200" }} ``` Is, with default configuration, the same as: ```html {{ $image.Fill "200x200" "smart" }} ``` You can change this default in your `config.toml`: ```toml [imaging] [imaging] resampleFilter = "box" quality = 68 anchor = "Smart" ``` Fixes #4375