mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
+36
-2
@@ -1242,12 +1242,24 @@ config:
|
||||
ignoreLogs: null
|
||||
ignoreVendorPaths: ''
|
||||
imaging:
|
||||
bgColor: '#ffffff'
|
||||
anchor: smart
|
||||
bgColor: ffffff
|
||||
compression: lossy
|
||||
hint: photo
|
||||
exif:
|
||||
disableDate: false
|
||||
disableLatLong: false
|
||||
excludeFields: GPS|Exif|Exposure[M|P|B]|Contrast|Resolution|Sharp|JPEG|Metering|Sensing|Saturation|ColorSpace|Flash|WhiteBalance
|
||||
includeFields: ''
|
||||
meta:
|
||||
fields:
|
||||
- '! *{GPS,Exif,Exposure[MPB],Contrast,Resolution,Sharp,JPEG,Metering,Sensing,Saturation,ColorSpace,Flash,WhiteBalance}*'
|
||||
sources:
|
||||
- exif
|
||||
- iptc
|
||||
quality: 75
|
||||
resampleFilter: box
|
||||
webp:
|
||||
hint: photo
|
||||
method: 2
|
||||
useSharpYuv: false
|
||||
languageCode: ''
|
||||
@@ -1403,6 +1415,10 @@ config:
|
||||
delimiter: .
|
||||
suffixes:
|
||||
- ttf
|
||||
image/avif:
|
||||
delimiter: .
|
||||
suffixes:
|
||||
- avif
|
||||
image/bmp:
|
||||
delimiter: .
|
||||
suffixes:
|
||||
@@ -1411,6 +1427,14 @@ config:
|
||||
delimiter: .
|
||||
suffixes:
|
||||
- gif
|
||||
image/heic:
|
||||
delimiter: .
|
||||
suffixes:
|
||||
- heic
|
||||
image/heif:
|
||||
delimiter: .
|
||||
suffixes:
|
||||
- heif
|
||||
image/jpeg:
|
||||
delimiter: .
|
||||
suffixes:
|
||||
@@ -3635,6 +3659,16 @@ tpl:
|
||||
Args: null
|
||||
Description: ''
|
||||
Examples: null
|
||||
IsImageResourceProcessable:
|
||||
Aliases: null
|
||||
Args: null
|
||||
Description: ''
|
||||
Examples: null
|
||||
IsImageResourceWithMeta:
|
||||
Aliases: null
|
||||
Args: null
|
||||
Description: ''
|
||||
Examples: null
|
||||
IsMap:
|
||||
Aliases: null
|
||||
Args:
|
||||
|
||||
@@ -241,7 +241,7 @@ func DecodeConfig(in map[string]any) (*config.ConfigNamespace[ImagingConfig, Ima
|
||||
|
||||
i.ResampleFilter = filter
|
||||
|
||||
return i, nil, nil
|
||||
return i, i.Imaging, nil
|
||||
}
|
||||
|
||||
ns, err := config.DecodeNamespace[ImagingConfig](in, buildConfig)
|
||||
|
||||
Reference in New Issue
Block a user