aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources/images
diff options
context:
space:
mode:
authorJoe Mooring <[email protected]>2021-12-12 23:55:15 -0800
committerGitHub <[email protected]>2021-12-13 08:55:15 +0100
commita037be774d567c6a29cc7f10c94c9f746ca6d2aa (patch)
treef3cce8092065f76ff6f369167515c6cec2f94479 /resources/images
parent8a005538db5789e25ba2b092104b6cc53c6c1ece (diff)
downloadhugo-a037be774d567c6a29cc7f10c94c9f746ca6d2aa.tar.gz
hugo-a037be774d567c6a29cc7f10c94c9f746ca6d2aa.zip
Improve handling of remote image/jpeg resources (#9278)
Add jpe, jif, and jfif to image/jpeg extensions. For remote image/jpeg without extension, always use jpg extension. Closes #9275
Diffstat (limited to 'resources/images')
-rw-r--r--resources/images/config.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/resources/images/config.go b/resources/images/config.go
index 88790e3c4..c8990d5ca 100644
--- a/resources/images/config.go
+++ b/resources/images/config.go
@@ -34,6 +34,9 @@ var (
imageFormats = map[string]Format{
".jpg": JPEG,
".jpeg": JPEG,
+ ".jpe": JPEG,
+ ".jif": JPEG,
+ ".jfif": JPEG,
".png": PNG,
".tif": TIFF,
".tiff": TIFF,