From a2dac4ed0574e08eab1debe0d9c26711778533a5 Mon Sep 17 00:00:00 2001 From: 移动系统liao <liaoxujun@qq.com> Date: 星期一, 09 九月 2024 09:27:25 +0800 Subject: [PATCH] no message --- cylsg/EzUpFile/EzFileUploadService.cs | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cylsg/EzUpFile/EzFileUploadService.cs b/cylsg/EzUpFile/EzFileUploadService.cs index da61bfd..f745f2e 100644 --- a/cylsg/EzUpFile/EzFileUploadService.cs +++ b/cylsg/EzUpFile/EzFileUploadService.cs @@ -302,7 +302,7 @@ if (FileData.Length > maxSize) { - throw Oops.Oh(" 涓婁紶鏂囦欢涓嶅彲瓒呭嚭500K"); + throw Oops.Oh(" 涓婁紶鏂囦欢涓嶅彲瓒呭嚭5M"); } @@ -316,13 +316,13 @@ } MemoryStream ms = new MemoryStream(); - if (oimage.Width > 600) + if (oimage.Width > 1200) { if (oimage.Width > oimage.Height) - oimage.GetThumbnailImage(600, 400, null, IntPtr.Zero).Save(ms, System.Drawing.Imaging.ImageFormat.Png); + oimage.GetThumbnailImage(1200, 800, null, IntPtr.Zero).Save(ms, System.Drawing.Imaging.ImageFormat.Png); else - oimage.GetThumbnailImage(400, 600, null, IntPtr.Zero).Save(ms, System.Drawing.Imaging.ImageFormat.Png); + oimage.GetThumbnailImage(800, 1200, null, IntPtr.Zero).Save(ms, System.Drawing.Imaging.ImageFormat.Png); } else oimage.Save(ms, System.Drawing.Imaging.ImageFormat.Png); @@ -385,13 +385,13 @@ } MemoryStream ms = new MemoryStream(); - if (oimage.Width > 600) + if (oimage.Width > 1200) { if (oimage.Width > oimage.Height) - oimage.GetThumbnailImage(600, 400, null, IntPtr.Zero).Save(ms, System.Drawing.Imaging.ImageFormat.Png); + oimage.GetThumbnailImage(1200, 800, null, IntPtr.Zero).Save(ms, System.Drawing.Imaging.ImageFormat.Png); else - oimage.GetThumbnailImage(400, 600, null, IntPtr.Zero).Save(ms, System.Drawing.Imaging.ImageFormat.Png); + oimage.GetThumbnailImage(800, 1200, null, IntPtr.Zero).Save(ms, System.Drawing.Imaging.ImageFormat.Png); } else oimage.Save(ms, System.Drawing.Imaging.ImageFormat.Png); -- Gitblit v1.9.1