Permalink
Browse files

tpl: Add WebP images support

Fixes #3529
  • Loading branch information...
bep committed Jun 28, 2017
1 parent da72805 commit 8431c8d39d878c18c6b5463d9091a953608df10b
Showing with 8 additions and 0 deletions.
  1. +2 −0 tpl/images/images.go
  2. +6 −0 vendor/vendor.json
View
@@ -23,6 +23,8 @@ import (
_ "image/jpeg"
_ "image/png"
_ "golang.org/x/image/webp"
"github.com/gohugoio/hugo/deps"
"github.com/spf13/cast"
)
View
@@ -364,6 +364,12 @@
"revision": "850760c427c516be930bc91280636328f1a62286",
"revisionTime": "2017-06-13T19:24:08Z"
},
{
"checksumSHA1": "wwirbKM4d69iWA4s9JwpXTsda3A=",
"path": "golang.org/x/image/webp",
"revision": "426cfd8eeb6e08ab1932954e09e3c2cb2bc6e36d",
"revisionTime": "2017-05-14T06:33:48Z"
},
{
"checksumSHA1": "VrzPJyWI6disCgYuVEQzkjqUsJk=",
"path": "golang.org/x/net/idna",

1 comment on commit 8431c8d

@jhabdas

This comment has been minimized.

Show comment
Hide comment
@jhabdas

jhabdas Sep 13, 2017

Contributor

Something to keep an eye out for WRT image formats: https://bellard.org/bpg/. I've added support for it using a polyfill in After Dark 2.0.

Here's a visual comparison of BPG with WebP:
http://xooyoozoo.github.io/yolo-octo-bugfixes/#machu-picchu&webp=s&bpg=s

Contributor

jhabdas commented on 8431c8d Sep 13, 2017

Something to keep an eye out for WRT image formats: https://bellard.org/bpg/. I've added support for it using a polyfill in After Dark 2.0.

Here's a visual comparison of BPG with WebP:
http://xooyoozoo.github.io/yolo-octo-bugfixes/#machu-picchu&webp=s&bpg=s

Please sign in to comment.