From a1e5989c5ea488873832e6291a495b2ffe7fd27b Mon Sep 17 00:00:00 2001 From: jhc Date: Mon, 24 Feb 2025 19:00:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/logic/upload.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/pkg/logic/upload.go b/pkg/logic/upload.go index ce37e9e..d2cd227 100644 --- a/pkg/logic/upload.go +++ b/pkg/logic/upload.go @@ -48,19 +48,6 @@ func ReadOrientation(filename string) (direct int, err error) { return } -// 旋转90度 -func Rotate90(m image.Image) image.Image { - rotate90 := image.NewRGBA(image.Rect(0, 0, m.Bounds().Dy(), m.Bounds().Dx())) - // 矩阵旋转 - for x := m.Bounds().Min.Y; x < m.Bounds().Max.Y; x++ { - for y := m.Bounds().Max.X - 1; y >= m.Bounds().Min.X; y-- { - // 设置像素点 - rotate90.Set(m.Bounds().Max.Y-x, y, m.At(y, x)) - } - } - return rotate90 -} - // 旋转90度 func rotate90(m image.Image) image.Image { rotate90 := image.NewRGBA(image.Rect(0, 0, m.Bounds().Dy(), m.Bounds().Dx()))