hugo/resource
Bjørn Erik Pedersen ba94abbf5d
resource: Fix SVG and similar resource handling
The validation of if we could process the image (resize etc.) was moved up in Hugo 0.37, which meant SVG and other "non-processable" images would fail.

This commit fixes that by creating a regular resource for these image formats. They will not have `.Resize` or any of the other image methods.

Fixes #4455
2018-02-27 18:29:15 +01:00
..
testdata resource: Fix SVG and similar resource handling 2018-02-27 18:29:15 +01:00
image.go resource: Use Floyd-Steinberg dithering for PNGs 2018-02-26 19:44:36 +01:00
image_cache.go Run gofmt -s with Go 1.10 2018-02-21 09:59:33 +01:00
image_test.go resource: Fix SVG and similar resource handling 2018-02-27 18:29:15 +01:00
resource.go resource: Fix SVG and similar resource handling 2018-02-27 18:29:15 +01:00
resource_test.go Run gofmt -s with Go 1.10 2018-02-21 09:59:33 +01:00
smartcrop.go resource: Add smart cropping 2018-02-05 13:59:15 +01:00
testhelpers_test.go resource: Fix SVG and similar resource handling 2018-02-27 18:29:15 +01:00