SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
fix nil if not images
Chris Lu5a237af973f0
diff --git a/weed/server/volume_server_handlers_read.go b/weed/server/volume_server_handlers_read.goindex 734291a36e..9f2a46910b 100644--- a/weed/server/volume_server_handlers_read.go+++ b/weed/server/volume_server_handlers_read.go@@ -136,6 +136,7 @@ func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)}}var rs io.ReadSeeker+ rs = bytes.NewReader(n.Data)if ext == ".png" || ext == ".jpg" || ext == ".jpeg" || ext == ".gif" {width, height := 0, 0if r.FormValue("width") != "" {@@ -144,7 +145,7 @@ func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)if r.FormValue("height") != "" {height, _ = strconv.Atoi(r.FormValue("height"))}- rs, _, _ = images.Resized(ext, bytes.NewReader(n.Data), width, height, r.FormValue("mode"))+ rs, _, _ = images.Resized(ext, rs, width, height, r.FormValue("mode"))}if e := writeResponseContent(filename, mtype, rs, w, r); e != nil {