mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 14:08:42 +00:00
fix(web/image_hosting): watermark scale
This commit is contained in:
parent
d490de8bd4
commit
d8d97b4f93
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user