hugo/resource
Bjørn Erik Pedersen 722086b4ed
resource: Add smart cropping
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
2018-02-05 13:59:15 +01:00
..
testdata resource: Fix handling of very long image file names 2018-01-15 20:22:14 +01:00
image.go resource: Add smart cropping 2018-02-05 13:59:15 +01:00
image_cache.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
image_test.go resource: Add smart cropping 2018-02-05 13:59:15 +01:00
resource.go resource: Make resource counters for name and title independent 2018-01-29 10:44:09 +01:00
resource_test.go resource: Make resource counters for name and title independent 2018-01-29 10:44:09 +01:00
smartcrop.go resource: Add smart cropping 2018-02-05 13:59:15 +01:00
testhelpers_test.go resource: Add smart cropping 2018-02-05 13:59:15 +01:00