mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-13 20:24:00 +02:00
resources/images: Make the image cache more robust
Also allow timeout to be set as a duration string, e.g. `30s`. Fixes #6501
This commit is contained in:
@@ -88,7 +88,7 @@ func (i *imageResource) getExif() (*exif.Exif, error) {
|
||||
|
||||
key := i.getImageMetaCacheTargetPath()
|
||||
|
||||
read := func(info filecache.ItemInfo, r io.Reader) error {
|
||||
read := func(info filecache.ItemInfo, r io.ReadSeeker) error {
|
||||
meta := &imageMeta{}
|
||||
data, err := ioutil.ReadAll(r)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user