]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
images: Add a webp test with bg color
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 17 Dec 2025 08:41:25 +0000 (09:41 +0100)
committerGitHub <noreply@github.com>
Wed, 17 Dec 2025 08:41:25 +0000 (09:41 +0100)
resources/images/images_golden_integration_test.go
resources/images/testdata/images_golden/process/webp/crop-300x300-smart-ff9999.png [new file with mode: 0644]

index 96cdd2f797750c4a8b4212093228052df44dd08c..ff2c3d2074770f84f8c3cc557090b7ab9ec4916a 100644 (file)
@@ -378,6 +378,7 @@ Home.
 {{/* These are sorted. The end file name will be created from the spec + extension, so make sure these are unique. */}}
 {{ template "process" (dict "spec" "crop 300x300 gif" "img" $animWebp) }}
 {{ template "process" (dict "spec" "crop 300x300 smart" "img" $fuzzyCircle) }}
+ {{ template "process" (dict "spec" "crop 300x300 smart #ff9999" "img" $fuzzyCircle) }}
 {{ template "process" (dict "spec" "crop 300x300" "img" $animWebp) }}
 {{ template "process" (dict "spec" "crop 500x200 smart webp" "img" $sunset) }}
 {{ template "process" (dict "spec" "crop 500x200 smart webp" "img" $sunset) }}
diff --git a/resources/images/testdata/images_golden/process/webp/crop-300x300-smart-ff9999.png b/resources/images/testdata/images_golden/process/webp/crop-300x300-smart-ff9999.png
new file mode 100644 (file)
index 0000000..32c1121
Binary files /dev/null and b/resources/images/testdata/images_golden/process/webp/crop-300x300-smart-ff9999.png differ