fix(web/image_hosting): watermark scale

This commit is contained in:
Baoshuo Ren 2022-10-14 10:31:58 +08:00
parent d490de8bd4
commit d8d97b4f93
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -54,7 +54,7 @@
list($width, $height, $type) = $size; list($width, $height, $type) = $size;
$hash = hash_file("sha256", $_FILES['image_upload_file']['tmp_name']); $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']; $watermark_text = UOJConfig::$data['profile']['oj-name-short'];
if (isSuperUser($myUser) && $_POST['watermark'] == 'no_watermark') { if (isSuperUser($myUser) && $_POST['watermark'] == 'no_watermark') {