hugo/resources
Bjørn Erik Pedersen f9978ed164
Image resource refactor
This commit pulls most of the image related logic into its own package, to make it easier to reason about and extend.

This is also a rewrite of the transformation logic used in Hugo Pipes, mostly to allow constructs like the one below:

    {{ ($myimg | fingerprint ).Width }}

Fixes #5903
Fixes #6234
Fixes #6266
2019-08-26 15:00:44 +02:00
..
images Image resource refactor 2019-08-26 15:00:44 +02:00
internal Image resource refactor 2019-08-26 15:00:44 +02:00
page tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
resource Image resource refactor 2019-08-26 15:00:44 +02:00
resource_factories Add FileInfo to resources created with resources.Match etc. 2019-08-13 18:45:08 +02:00
resource_transformers Image resource refactor 2019-08-26 15:00:44 +02:00
testdata Fix image format detection for upper case extensions, e.g. JPG 2019-07-30 08:53:50 +02:00
image.go Image resource refactor 2019-08-26 15:00:44 +02:00
image_cache.go Image resource refactor 2019-08-26 15:00:44 +02:00
image_test.go Image resource refactor 2019-08-26 15:00:44 +02:00
resource.go Image resource refactor 2019-08-26 15:00:44 +02:00
resource_cache.go Image resource refactor 2019-08-26 15:00:44 +02:00
resource_cache_test.go Improve the server assets cache invalidation logic 2019-08-13 18:09:46 +02:00
resource_metadata.go Image resource refactor 2019-08-26 15:00:44 +02:00
resource_metadata_test.go Image resource refactor 2019-08-26 15:00:44 +02:00
resource_spec.go Image resource refactor 2019-08-26 15:00:44 +02:00
resource_test.go Image resource refactor 2019-08-26 15:00:44 +02:00
testhelpers_test.go Image resource refactor 2019-08-26 15:00:44 +02:00
transform.go Image resource refactor 2019-08-26 15:00:44 +02:00
transform_test.go Image resource refactor 2019-08-26 15:00:44 +02:00