aboutsummaryrefslogtreecommitdiff
path: root/weed/server
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2017-04-02 09:02:55 -0700
committerGitHub <noreply@github.com>2017-04-02 09:02:55 -0700
commit9fcff1bd9a52b76eef6e1e56d3294b7efdecc439 (patch)
tree2ba3efef4b03c4c4a434bc54f313018acb182d6b /weed/server
parenta337b844ec3f9912d212a24ec23a92057b9b7d69 (diff)
parent7ab9160ee125d99b22686745f67059e8c3d12ef4 (diff)
downloadseaweedfs-9fcff1bd9a52b76eef6e1e56d3294b7efdecc439.tar.xz
seaweedfs-9fcff1bd9a52b76eef6e1e56d3294b7efdecc439.zip
Merge pull request #480 from vitalybaev/webp-resize-support
WebP resize support
Diffstat (limited to 'weed/server')
-rw-r--r--weed/server/volume_server_handlers_read.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/server/volume_server_handlers_read.go b/weed/server/volume_server_handlers_read.go
index 2e33b415c..3d15d790e 100644
--- a/weed/server/volume_server_handlers_read.go
+++ b/weed/server/volume_server_handlers_read.go
@@ -136,7 +136,7 @@ func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
}
}
}
- if ext == ".png" || ext == ".jpg" || ext == ".gif" {
+ if ext == ".png" || ext == ".jpg" || ext == ".gif"|| ext == ".webp" {
width, height := 0, 0
if r.FormValue("width") != "" {
width, _ = strconv.Atoi(r.FormValue("width"))