diff options
| author | Vitaly Baev <dj@vitalybaev.ru> | 2017-03-31 09:56:00 +0300 |
|---|---|---|
| committer | Vitaly Baev <dj@vitalybaev.ru> | 2017-03-31 09:56:00 +0300 |
| commit | 7ab9160ee125d99b22686745f67059e8c3d12ef4 (patch) | |
| tree | 2ba3efef4b03c4c4a434bc54f313018acb182d6b /weed/images/preprocess.go | |
| parent | a337b844ec3f9912d212a24ec23a92057b9b7d69 (diff) | |
| download | seaweedfs-7ab9160ee125d99b22686745f67059e8c3d12ef4.tar.xz seaweedfs-7ab9160ee125d99b22686745f67059e8c3d12ef4.zip | |
WebP resize support
Diffstat (limited to 'weed/images/preprocess.go')
| -rw-r--r-- | weed/images/preprocess.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/images/preprocess.go b/weed/images/preprocess.go index 0d6cb2d9e..968cda44f 100644 --- a/weed/images/preprocess.go +++ b/weed/images/preprocess.go @@ -17,7 +17,7 @@ func MaybePreprocessImage(filename string, data []byte, width, height int) (resi ext := filepath.Ext(filename) ext = strings.ToLower(ext) switch ext { - case ".png", ".gif": + case ".png", ".gif", ".webp": return Resized(ext, data, width, height) case ".jpg", ".jpeg": data = FixJpgOrientation(data) |
