summaryrefslogtreecommitdiffstats
path: root/hugolib/image_test.go
AgeCommit message (Collapse)Author
2022-04-08Rework the Destination filesystem to make --renderStaticToDisk workBjørn Erik Pedersen
See #9626
2022-03-17all: gofmt -w -r 'interface{} -> any' .Bjørn Erik Pedersen
Updates #9687
2021-06-14Misc config loading fixesBjørn Erik Pedersen
The main motivation behind this is simplicity and correctnes, but the new small config library is also faster: ``` BenchmarkDefaultConfigProvider/Viper-16 252418 4546 ns/op 2720 B/op 30 allocs/op BenchmarkDefaultConfigProvider/Custom-16 450756 2651 ns/op 1008 B/op 6 allocs/op ``` Fixes #8633 Fixes #8618 Fixes #8630 Updates #8591 Closes #6680 Closes #5192
2021-04-15Add webp image encoding supportBjørn Erik Pedersen
Fixes #5924
2020-12-30Add Dart Sass supportBjørn Erik Pedersen
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes #7380 Fixes #8102
2020-12-03all: Format code with gofumptBjørn Erik Pedersen
See https://github.com/mvdan/gofumpt
2020-01-22hugolib: Disable a test assertion on ARMBjørn Erik Pedersen
See #6655
2019-12-19Fix incorrect MIME type from image/jpg to image/jpegJohn Zaitseff
According to multiple sources, both official ([IANA] and [RFC2046]) and otherwise (eg, [Mozilla] and [Wikipedia]), the official MIME type for JPEG images is `image/jpeg`, not `image/jpg`. Change Hugo to match. [IANA]: https://www.iana.org/assignments/media-types/media-types.xhtml#image [RFC2046]: https://tools.ietf.org/html/rfc2046 [Mozilla]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types [Wikipedia]: https://en.wikipedia.org/wiki/JPEG
2019-11-29hugolib: Fix timeout number parsing for YAML/JSON configBjørn Erik Pedersen
Where numbers are all floats. Fixes #6555
2019-11-26hugolib: Disable test assertion on WindowsBjørn Erik Pedersen
2019-11-25resources/images: Make the image cache more robustBjørn Erik Pedersen
Also allow timeout to be set as a duration string, e.g. `30s`. Fixes #6501
2019-10-20resources/images: Allow to set background fill colourBjørn Erik Pedersen
Closes #6298
2019-09-06Avoid writing the same processed image to /public twiceBjørn Erik Pedersen
Fixes #6307
2019-09-04Allow slices in the image Filter funcs, not just varargsBjørn Erik Pedersen
[ci skip] See #6255
2019-09-03Cache processed images by their source pathBjørn Erik Pedersen
Fixes #6269
2019-09-02Add some fingerprint testsBjørn Erik Pedersen
Closes #6284 Closes #6280
2019-08-13Add FileInfo to resources created with resources.Match etc.Bjørn Erik Pedersen
Without it, image resize fails. See #6190
2019-08-12tests: Convert from testify to quicktestBjørn Erik Pedersen
2019-07-28resources: Fix image Width/Height regressionBjørn Erik Pedersen
Fixes #6120