From 397e7a02c064c8effc0babf41076b9df58bdb37f Mon Sep 17 00:00:00 2001 From: chitanda-azusa Date: Fri, 29 Nov 2024 16:53:45 +0900 Subject: [PATCH 1/2] fix GetImagesBlob error --- thumbnail/thumbnail_magick.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/thumbnail/thumbnail_magick.go b/thumbnail/thumbnail_magick.go index 668b52f..cf12f18 100644 --- a/thumbnail/thumbnail_magick.go +++ b/thumbnail/thumbnail_magick.go @@ -735,7 +735,13 @@ func MakeThumbnailMagick(bytes []byte, dst http.ResponseWriter, params Thumbnail } //η”»εƒε‡ΊεŠ› - blob := mw.GetImagesBlob() + blob, err := mw.GetImagesBlob() + + if err != nil { + glog.Error("Get Images Blob failed: " + err.Error()) + log.Println("Get Images Blob failed: " + err.Error()) + return err + } if len(blob) == 0 { err = mw.GetLastError() From 7bc3bcbd45d1f4c4fcd235acb029c4f126a29045 Mon Sep 17 00:00:00 2001 From: chitanda-azusa Date: Fri, 29 Nov 2024 17:08:55 +0900 Subject: [PATCH 2/2] fix GetImagesBlob --- thumbnail/thumbnail_magick.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/thumbnail/thumbnail_magick.go b/thumbnail/thumbnail_magick.go index cf12f18..07634cf 100644 --- a/thumbnail/thumbnail_magick.go +++ b/thumbnail/thumbnail_magick.go @@ -738,9 +738,9 @@ func MakeThumbnailMagick(bytes []byte, dst http.ResponseWriter, params Thumbnail blob, err := mw.GetImagesBlob() if err != nil { - glog.Error("Get Images Blob failed: " + err.Error()) - log.Println("Get Images Blob failed: " + err.Error()) - return err + glog.Error("Get Images Blob failed: " + err.Error()) + log.Println("Get Images Blob failed: " + err.Error()) + return err } if len(blob) == 0 {