From d8d97b4f93900c418dec4e8aa315394e8bc893ef Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Fri, 14 Oct 2022 10:31:58 +0800 Subject: [PATCH] fix(web/image_hosting): watermark scale --- web/app/controllers/image_hosting/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/controllers/image_hosting/index.php b/web/app/controllers/image_hosting/index.php index c7682cd..714ac1e 100644 --- a/web/app/controllers/image_hosting/index.php +++ b/web/app/controllers/image_hosting/index.php @@ -54,7 +54,7 @@ list($width, $height, $type) = $size; $hash = hash_file("sha256", $_FILES['image_upload_file']['tmp_name']); - $scale = ceil($width / 750.0); + $scale = ceil($height / 600.0); $watermark_text = UOJConfig::$data['profile']['oj-name-short']; if (isSuperUser($myUser) && $_POST['watermark'] == 'no_watermark') {